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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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."
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to