I want to run a few shell commands to rcmd between unix servers and display the results within a webpage - how do I code a shell command within a PHP script??????
The big caveats:
Make sure there is no way arbitrary code could be passed to the shell. There's a bunch of commands to help you with that.
Personally, if there's a different way to ascertain the desired data, use it.
The output of the shell command/scripts etc. can be taken easily into PHP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.