Connecting Tech Pros Worldwide Forums | Help | Site Map

nohup command for php

Nosmada
Guest
 
Posts: n/a
#1: Jul 17 '05
Here is my php command that I am using from an SSH Command line prompt
(apache/linux server):

php scriptname.php all

If this were cgi I would normally execute the command like this:

nohup perl scriptname.cgi --all > log.txt &

Then I can quite and come back and the script will still run and I can
check the output in realtime with this:

tail -n50 -f log.txt

How do I do this with the php script above?

Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: nohup command for php


Nosmada <info.notices@soulpaks.com> wrote:[color=blue]
> nohup perl scriptname.cgi --all > log.txt &
>
> Then I can quite and come back and the script will still run and I can
> check the output in realtime with this:
>
> tail -n50 -f log.txt
>
> How do I do this with the php script above?[/color]

Exactly the same... nohup is unrelated to perl/php/whatever...

--

Daniel Tryba

Closed Thread