Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Using exec() for executing shell scripts in CGI

by stumbler (Acolyte)
on Dec 14, 2006 at 11:32 UTC ( [id://589791]=note: print w/replies, xml ) Need Help??


in reply to Re: Using exec() for executing shell scripts in CGI
in thread Using exec() for executing shell scripts in CGI

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..

my %commands = ( opt1 => exe1, opt2 => exe2, opt3 => exe3, );

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 04:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found