Re: background process - procTBL
| From: | richard gray | Date: | Sat, 07 Jun 2014 08:48:35 +0000 |
| Subject: | Re: background process - procTBL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323398@lists.php.net to get a copy of this message | ||
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 &