I am trying to run the following script:
system("sleep 61 &");
system("sleep 62 &");
print "Content-type: text/html\n\n";
print "<HTML><BODY>Hi there!</BODY></HTML>\n";
When I run the script (minus the cgi part) under UNIX, it returns control
immediately and completes. I can then check to see that my processes are
in the background. Perl is handling this ok, and that is the
functionality I would expect (and desire).
HOWEVER, when I run this as a cgi-bin script, the browser doesn't
relinquish control back until ALL of the background processes are
completed. This is NOT what I need.
Is there any way around this? I am running Apache 1.2 on an HP system
with Perl 5.003. I have also tried running this on a Linux system, as
well as having tried the NCSA 1.5 server, and I have tried using Perl
version 5.000. I am using Netscape 3, but I have tried using Lynx and
other browsers as well.
Any help would be greatly appreciated.
Thanks in advance,
NASA / GSFC / FDD