Re: wget --spider and ignore_user_abort(TRUE)
| From: | Richard Heyes | Date: | Tue, 04 Nov 2008 10:03:11 +0000 |
| Subject: | Re: wget --spider and ignore_user_abort(TRUE) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282830@lists.php.net to get a copy of this message | ||
> I am trying to get a script to run in background no matter what, but I am
> obviously doing it wrong.
1. Have it executed via a shell command.
2. Redirect all output.
3. Append the ampersand.
eg. A commandx such as:
sleep 5 >/dev/null 2>&1 &
would become:
<?php
exec('sleep 5 > /dev/null 2>&1 &');
?>
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 1st)