in reply to Re: Using parent and child processes in perl
in thread Using parent and child processes in perl
The actual computation takes about 4-5 minutes and I am using a RedHat Linux OS. I return some 1000 rows of data. Some 1000 rows of "The quick brown fox jumped over a lazy dog, and the lazy dog did nothing but bark", you can assume. So you are saying, in the child I store the result in a global variable($temp) and in the parent,I will have only one line that redirects the url to another cgi script with this $temp as parameter. i.e
my $temp; # Global variable if($pid) { print redirect(); exit; } else { # call the computation function in child }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using parent and child processes in perl
by rjt (Curate) on Jul 14, 2013 at 12:50 UTC | |
by Anonymous Monk on Jul 14, 2013 at 18:47 UTC | |
by rjt (Curate) on Jul 15, 2013 at 04:55 UTC | |
by perl-nun (Initiate) on Jul 15, 2013 at 05:20 UTC | |
by Anonymous Monk on Jul 15, 2013 at 07:34 UTC |