andy_7t has asked for the wisdom of the Perl Monks concerning the following question:
I've got a perl script running through apache, which I want to call another program but run it in the background.
I've tried
system('/path/to/script');
system('/path/to/script &');
exec('as above');
These work, but the webpage just hangs waiting for the process to finish, or in this case, until Apache times out after 90 seconds (on my machine). How do I just fire off a background process? The background process is not a perl script by the way.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating a background task from the web
by Corion (Patriarch) on Jan 28, 2009 at 14:20 UTC | |
|
Re: Creating a background task from the web
by citromatik (Curate) on Jan 28, 2009 at 14:41 UTC | |
|
Re: Creating a background task from the web
by jethro (Monsignor) on Jan 28, 2009 at 14:56 UTC | |
by jasonk (Parson) on Jan 29, 2009 at 17:00 UTC | |
by jethro (Monsignor) on Jan 29, 2009 at 18:38 UTC |