tzvik has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI::Carp qw(fatalsToBrowser); $| = 1; print "Content-type: text/html\n\n"; print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +', "\n"; print "<html><head><title>Testausgabe</title>\n"; print "</head><body>\n"; my $Kind_pid = fork(); if(kill(0,$Kind_pid)) { print "<p>whate while process</p>\n"; for (my $i=0;$i<5000000;$i++) { } print ("end for"); kill("KILL",$Kind_pid); } else{ while(1) { sleep 1; print "."; } } print "</body></html>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cgi , fork , output data
by robartes (Priest) on Mar 11, 2003 at 10:24 UTC | |
by jreades (Friar) on Mar 11, 2003 at 10:28 UTC | |
by tzvik (Initiate) on Mar 11, 2003 at 10:59 UTC | |
by tzvik (Initiate) on Mar 11, 2003 at 10:46 UTC | |
|
•Re: Cgi , fork , output data
by merlyn (Sage) on Mar 11, 2003 at 13:32 UTC |