Eureka_sg has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI script that uses the parameter passed to it as an argument for another perl script,xx.pl. However, I was unable to run xx.pl when running from the web.I did something like this:
<P>open(A,"xx.pl $value|"); while(<A>){ $results .= $_;}</P>
when i run it from the command line, there is no probl. but it doesnt work when accessing from the web
After troubleshooting, I've found out that:
1) the parameter,$value is being passed correctly
2) xx.pl is accessible to all, chmod 777 xx.pl
3) when I replaced xx.pl with a simple command, ls ,
it works perfectly
4) when I put 'ls' into a shell script and use it to replace
xx.pl, it doesnt work again
I think I'm missing out a crucial point somewhere. Can anyone offer me some insight? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running an external script from a Perl CGI script
by BlueLines (Hermit) on Feb 21, 2001 at 16:55 UTC | |
|
Re: Running an external script from a Perl CGI script
by dash2 (Hermit) on Feb 21, 2001 at 17:58 UTC | |
|
(ar0n) Re: Running an external script from a Perl CGI script
by ar0n (Priest) on Feb 21, 2001 at 18:16 UTC | |
|
(jeffa) Re: Running an external script from a Perl CGI script
by jeffa (Bishop) on Feb 21, 2001 at 21:14 UTC | |
|
Re: Running an external script from a Perl CGI script
by Jouke (Curate) on Feb 21, 2001 at 16:39 UTC | |
by Eureka_sg (Monk) on Feb 21, 2001 at 16:45 UTC | |
|
Re: Running an external script from a Perl CGI script
by cat2014 (Monk) on Feb 21, 2001 at 23:44 UTC | |
by Eureka_sg (Monk) on Feb 22, 2001 at 12:17 UTC | |
|
Re: Running an external script from a Perl CGI script
by Maclir (Curate) on Feb 22, 2001 at 06:34 UTC |