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