mrguy123 has asked for the wisdom of the Perl Monks concerning the following question:
This program calls a program that sleeps in the background. However, it still takes 20 secs for the page to load (sleep=20).#!/usr/bin/perl use strict; use warnings; #calls a program that sleeps for 20 seconds system "perl sleep.pl &"; 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI and Background Processes
by Corion (Patriarch) on May 05, 2008 at 13:36 UTC | |
by mrguy123 (Hermit) on May 05, 2008 at 13:53 UTC | |
|
Re: CGI and Background Processes
by almut (Canon) on May 05, 2008 at 14:34 UTC | |
by mrguy123 (Hermit) on May 05, 2008 at 14:43 UTC | |
by almut (Canon) on May 05, 2008 at 15:04 UTC | |
by mrguy123 (Hermit) on May 05, 2008 at 15:34 UTC | |
by almut (Canon) on May 05, 2008 at 15:51 UTC | |
| |
|
Re: CGI and Background Processes
by Anonymous Monk on May 20, 2015 at 16:10 UTC |