Re: bg execution
| From: | Evan Nemerson | Date: | Sat, 22 May 2004 19:38:39 +0000 |
| Subject: | Re: bg execution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186780@lists.php.net to get a copy of this message | ||
On Saturday 22 May 2004 06:51 am, Martin Helie wrote:
> Hello,
>
> I need to start a php-based socket server that doesn't die if the client
> closes their browser window.
php.net/pcntl
>
> Is there another (maybe cleaner) method to accomplish this, other than
>
> exec('bash -c "exec nohup setsid php server.php > /dev/null 2>&1
> &"');
>
> ?
>
> Thanks
--
Evan Nemerson
evan@coeus-group.com
http://coeusgroup.com/en
--
"If anyone can show me, and prove to me, that I am wrong in thought or deed, I
will gladly change. I seek the truth, which never yet hurt anybody. It is
only persistence in self-delusion and ignorance which does harm."
-Marcus Aurelius