Re: How to fire off a unix command WITHOUT waiting for it to return (I want to use &)

From: Date: Fri, 10 Oct 2003 23:30:47 +0000
Subject: Re: 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-165812@lists.php.net to get a copy of this message
On Fri, 10 Oct 2003 16:07:54 -0700, Daevid Vincent <daevid@daevid.com> wrote:
How can I cause PHP to fire off a unix program and NOT wait for a reply. Basically I want to use the "&" love the unix provides, but it seems that exec, passthrough, system and even all wait for a return despite my putting something like exec("/bin/scan &"); or /bin/scan & *sigh*
write simple shell script wrapper that does it for you: #!/bin/sh /bin/scan & Then call the wrapper. HTH, Curt.

« previous php.general (#165812) next »