> -----Original Message----- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 12:45 PM > To: 'Alex Read'; [EMAIL PROTECTED] > Subject: RE: Probably a stupid question > > ... > > The way to code this to do something like: > > defined(my $pid = fork) or die "Couldn't fork: $!"; > > # parent prints message and exits > if ($pid) { > print "Content-type: text/plain\r\n\r\n"; > print "hi\n"; > exit; > } > > # child now running, so do your long-running process here > ...
Forgot to add, child should probably: close(STDIN); close(STDOUT); close(STDERR); So as to disconnect from the browser and the server log file. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]