So how can i get:
All system information from Bash cgi script to web site?
So how can i get: All system information from Bash cgi script to web
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Before any output, your bash CGI script should print a “Content-type” header, for example:
In most apache deployments there is a cgi-bin directory where you should place CGI scripts. Make your script executable (by the user running the webserver) and place it at this directory.
If the user running the webserver has no rights to display the system information you need, you will have to use something like sudo to escalate privileges – be sure to use a very restrictive sudoers file (if you can’t sudo, get out of here).