Hello,
OK, we now have the following;
#!/usr/bin/perl
use strict;
my $pid = fork;
if ($pid == 0){
exec 'sleep 2; echo "hi"' || die "Cannot sleep: $!" ;
} else {
print "Content-type: text/html\n\n<html>";
print "\nhi\n\n</html>\n\n";
}
So the child process is the only one that sleeps for 2, then prints hi, and
the parent prints Content-type etc., and on the command line thats exactly
what it does. I get Content-type etc. straight away, the two seconds later
I get hi. But, when I run this as a cgi script my browser hangs for 2
seconds and then prints hi hi.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]