in reply to Re^3: CGI and Background Processes
in thread CGI and Background Processes
The sleeping program is (text book style):#!/usr/bin/perl use strict; use warnings; print "Content-type: text/html\n\n"; print <<END_OF_PAGE; <HTML> <HEAD> <TITLE>Waiting</TITLE> </HEAD> <BODY> <P> Waiting Some more </P> </BODY> </HTML> END_OF_PAGE reopen STDOUT; reopen STDERR; system "perl sleep.pl > out ";
I've also tried to close and the reopen the output streams. I still can't seem to get anything to go to the log file.use strict; use warnings; print "going to sleep\n"; my $i = 0; while ($i<20){ sleep (1); print "zzz\n"; $i++; } print "finished my beauty sleep\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CGI and Background Processes
by almut (Canon) on May 05, 2008 at 15:51 UTC | |
by mrguy123 (Hermit) on May 05, 2008 at 16:05 UTC |