how to execute shell scripts from cgi script
hi all,
i have been cracking over this but without success,
i have a main CGI script (in perl), from which I will like to call other scripts written in C or perl to do some minor job and return the response
to main CGI.
like->
main.pl is executed and it calls dirlist.pl, fileattrib (executable of fileattrib.c).
when i do this, dirlist.pl or fileattrib doesnt seem to be called as necessary operations ar enot performed..
i am using these lines in main.pl to call the scripts:-
`dirlist.pl`;
`fileattrib`;
Any ideas ????
2) How to log the errors generated by cgi-scripts ???
3) If i need to give root access to some script by setting suid 7555 to that script, will it still be executed by apache or not. if not, then how to fix it???
thanks in advance,
regards,
rajat garg
|