hi,,
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
echo $1
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server
hi,,
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
echo $1
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server
the first problem is that you are using single-quotes in the system function, which is killing any variable interpolation, change to double-quotes and try again:
system("./try.sh $t $d $m");
although it still may not work, the cgi script may not have permission to run the file or the path to try.sh may not be correct since you are using a relative path, relative to the perl script I think.
thanku.it is working now