Re: Can I make a process run in background?

From: Date: Tue, 06 Nov 2007 16:12:27 +0000
Subject: Re: Can I make a process run in background?
Groups: php.general 
Request: Send a blank email to php-general+get-264120@lists.php.net to get a copy of this message
You could CRON the script, write a simple bash script that polls the server and if the php script is not running, restarts it. * * * * * * /path/to/php <php script name> Wolf ---- Jim Lucas <lists@cmsws.com> wrote: > oops, didn't mean to reply off list. SORRY LIST! > > here is what I said. > > This method will work until you log out, when you log out all your background processes are > killed. > > If it were to be a CLI and you wanted it to run constantly and you manually wanted to control > it, I > would use "screen". Screen allows you to start a new terminal, start something, and > then "detach" > from that screen. Then you are allowed to log out and the next time you log in, you are able > to > resume the previous terminal session. > > > > Per Jessen wrote: > > Jim Lucas wrote: > > > >> This method will work until you log out, when you log out all your > >> background processes are killed. > > > > man nohup. > > good point > > > > > > > /Per Jessen, Zürich > > > > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V > by William Shakespeare > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#264120) next »