Hello, OK, I have a nice a simple test case, but I just can't get it to do what I want it to. How do I get this so that when I hit submit it comes straight back with my "hi" message instead of waiting until the sleep command has finished? I've tried playing around with fork and how I execute the command, but whatever I do I just can't get it to go to the return message without waiting for the child process to finish. Any help gratefully recieved. Many thanks
Alex. #!/usr/bin/perl use strict; my $pid = fork && exit; #$pid should return 0 if fork is successful. if ($pid == 0 ) { exec "sleep 100" or die "Cannot sleep: $!" ; } print "Content-type: text/html\n\n<html>"; print "\nhi\n\n</html>\n\n"; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]