Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Using exec() for executing shell scripts in CGIby stumbler (Acolyte) |
on Dec 14, 2006 at 11:32 UTC ( [id://589791]=note: print w/replies, xml ) | Need Help?? |
Thanks for the responses As mentioned in original post, I preset the executables I need to run using the following approach:- I have a hash which has the list of commands that can only be used. Something like..
In the CGI script, I have a variable , $runmode, which can take a value of 'opt1' or 'opt2' or 'opt3'. I retrieve the executable by $commands{ 'opt1' } and pass it on to the shell script. I don't do any admin activities such as adding new user, deleting or modifying existing user accounts, etc.. using CGI scripts.
In Section
Seekers of Perl Wisdom
|
|