Running Perl scripts on background from Web
I need to launch a perl script from an HTML page.
Since there, no problem.
But I want this script to be launched on background.
I think the equivalent command in shell would be :
nohup script_name >| /tmp/nohup.out &
I tried to run this from a CGI Perl Script using exec and found that
exec waits for the command to terminate.
So I tried to launch it the same way but from a manually forked process
print "Content-type: text/html\n\n\n";
# HTML content
exec("nohup script >| /tmp/nohup.out &");
Curiously, it seems that Netscape server waits for all processes to
terminates (father and sonn).
Someone an idea ?