P is for Practical | |
PerlMonks |
Re: How to execute a shell command from a CGI scriptby hippo (Bishop) |
on Aug 21, 2014 at 10:16 UTC ( [id://1098215]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|