Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to execute a shell command from a CGI script

by hippo (Bishop)
on Aug 21, 2014 at 10:16 UTC ( [id://1098215]=note: print w/replies, xml ) Need Help??


in reply to How to execute a shell command from a CGI script

system returns the exit status of the command being run. Compare that against backticks (or the qx equivalent) which return the output of the command being run.

But, please note the contributions by my learned brethren exhorting you to greater care over validation and cleansing of your inputs. You are using taint mode, which is good, but you are using it on entirely the wrong script. post.cgi is the one where taint mode will have the greater effect.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found