bg execution
| From: | Martin Helie | Date: | Sat, 22 May 2004 13:51:38 +0000 |
| Subject: | bg execution | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186763@lists.php.net to get a copy of this message | ||
Hello,
I need to start a php-based socket server that doesn't die if the client
closes their browser window.
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