Yeah, that is the 'hack' solution I came up with too. LOL. I guess I was hoping for something more elegant...
Is there a reason that PHP doesn't handle the & properly? I mean, it seems as though you'd have to go out of your way to force it NOT to spawn the task in the background. If PHP was just executing the command in a shell, it seems that the OS would handle the & for you... d > -----Original Message----- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Friday, October 10, 2003 4:31 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: How to fire off a unix command WITHOUT > waiting for it to return (I want to use &) > > On Fri, 10 Oct 2003 16:07:54 -0700, Daevid Vincent > <[EMAIL PROTECTED]> > 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. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php