Re: background process - procTBL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 06/06/2014 16:01, bruce wrote:
HI.

A test foo.php runs from the cmd line, it appears in the procTBL, and
then dies off, and is removed from the procTBL.

However, if the test -- foo.php & is run, it runs in the background,
but then shows "Stopped" and in the procTBL the foo.php is listed in
the procTBL as "T" or stopped...

For the case of running foo.php & -- the foo.php is permanently listed
as "T" (stopped) in the procTBL.

Is there anyway of creating/running a php/background process so that
when it dies, it does a suicide/self kill process and removes itself
from the procTBL..

thanks

I am guessing the php process is waiting for some tty input - php compiled with readline can cause this issue -- try php foo.php </dev/null &

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux