RE: [PHP] How to fire off a unix command WITHOUT waiting for it to return (I want to use &)
| From: | Mohamed Lrhazi | Date: | Wed, 15 Oct 2003 01:55:30 +0000 |
| Subject: | RE: [PHP] How to fire off a unix command WITHOUT waiting for it to return (I want to use &) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166148@lists.php.net to get a copy of this message | ||
> I tried this exec() suggestion and that didn't work right either.
> exec("/bin/scan & > /dev/null 2>/dev/null");
>
try :
exec("/bin/scan > /dev/null 2>&1 &");