Following is the t.pl in the above scriptuse CGI qw(:standard); sub sendHtmlResponse { print "path=$ENV{PATH}\n"; my $ret = system ("t.pl"); if ($ret != 0) { print "ERROR: calling t.pl failed, ret=[$ret], error=$!\n"; } } print header(); sendHtmlResponse ;
And, t.pl is in the path that gets printed in the output of my cgi-script above and I always get the ERROR message :(#!perl print "Hello World!\n";
In reply to Re: Re: system call in an CGI perl script, fails on Windows XP
by sureshr
in thread system call in an CGI perl script, fails on Windows XP
by sureshr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |