Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use warnings; use strict; use CGI; use Proc::Background; my $args = new CGI; if(!defined $args->param('step')) { print $args->header; blah blah blah print $args->end_html; exit; } if($args->param('step') == 0) { $step = 1; my $proc1 = Proc::Background->new("perl","./myscript.pl","arg1","arg +2"); } elsif($args->param('step') > 0) { $step = $args->param('step'); $step ++; } print $args->header(-Refresh=>"5;url=http://localhost/cgi-bin/mycgi.pl +?step=$step"); ... print <input type=\"hidden\" name=\"step\" value=\"$step\">"; print $args->end_html; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI script calling a perl script
by mbethke (Hermit) on Apr 24, 2013 at 19:53 UTC | |
by Anonymous Monk on Apr 24, 2013 at 20:02 UTC | |
by mbethke (Hermit) on Apr 24, 2013 at 20:17 UTC | |
by Anonymous Monk on Apr 24, 2013 at 20:15 UTC | |
by mbethke (Hermit) on Apr 24, 2013 at 20:31 UTC | |
by Anonymous Monk on Apr 24, 2013 at 20:44 UTC | |
|
Re: CGI script calling a perl script
by igelkott (Priest) on Apr 24, 2013 at 22:10 UTC | |
|
Re: CGI script calling a perl script
by Anonymous Monk on Apr 25, 2013 at 03:11 UTC |