Welcome to the Monastery | |
PerlMonks |
Using exec() for executing shell scripts in CGIby stumbler (Acolyte) |
on Dec 13, 2006 at 23:18 UTC ( [id://589693]=perlquestion: print w/replies, xml ) | Need Help?? |
stumbler has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks I want to execute some programs from a CGI script. After browsing in perlmonks and reading perlsec, I found that I can use the following approach:-
I have a shell script whose arguments are the path and the executable
and I execute that using 'exec' as shown
I am wondering if it is a good idea to execute unix shell scripts with some arguments as shown? I want to use this approach in CGI scripts to run executables from the web. ( Note that the 'executable' is preset inside the CGI script and IS NOT an user input.) Are there any security issues with this approach?
Back to
Seekers of Perl Wisdom
|
|