Re: Execing problems

From: Date: Fri, 08 Feb 2002 21:37:33 +0000
Subject: Re: Execing problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84059@lists.php.net to get a copy of this message
Make sure that exec() will not get any kind of response from the script if you want it in the background. This works for me: $command = "funky script stuff here"; exec ("$command >/dev/null 2>&1 &"); Peter Clarke "Jason Rennie" <jwrennie@bigpond.com> wrote in message news:Pine.LNX.4.21.0202081511290.26123-100000@snuggles.fuzz.net.au... > Hi all, > > I have a seperate perl script that I need to start running from a php > script. The script does a fork into the backgroup and exits. > > when i do an > > exec("funky script stuff here"); > > The page just hangs trying to load again, apparently after I call the > exec. > > I've also tried > > exec("script stuff &") > > but it does the same thing. > > Any ideas anybody ? > > Jason > > -- > Hofstadter's Law : "It always takes longer than you expect, even when you > take Hofstadter's Law into account." >

« previous php.general (#84059) next »