Thanks guys, I think this should be able to do what I want, as the browser goes straight to the return page and prints 'HI1'. Thanks again,
Alex #!/usr/bin/perl use strict; defined(my $pid = fork ) or die "Could not fork: $!"; if ($pid){ print "Content-type: text/html\n\n<html>"; print "\nHI1\n\n</html>\n\n"; exit; } else { close(STDIN); close(STDOUT); close(STDERR); exec 'sleep 10 ;echo "HI2"' } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]