So how can i get: All system information from Bash cgi script to web site?
Tell me more
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
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). | |||||
|