[wellylug] Setting a process going through apache
Grant McLean
grant at mclean.net.nz
Thu Jun 30 07:07:38 NZST 2005
On Wed, 2005-06-29 at 22:20 +1200, Ian Beardslee wrote:
> how can I use the browser to get apache to get a perl script running
> as a seperate process in the background? You know, click 'go' and it
> comes back saying your report should be in your inbox in 10 minutes type
> thing?
In the Perl script that's handling the request, you could do this:
system("report_script args &");
The ampersand on the end of the command will cause report_script to be
run as a background process and the main script will continue execution
immediately at the line following the 'system'.
Cheers
Grant
More information about the wellylug
mailing list