10-23-2005 06:41 PM
I want to know how to execute a unix command through a browser ?
For example: I want to open a browser and click on some link. The link should go to a unix box and execute a command ( say "bdf"). The output should be displayed in the browser itself.
Please let me know the way how to do it alongwith actual code.
Appreciate your help.
10-23-2005 06:47 PM
10-23-2005 06:51 PM
See this link for more information:
Hope this helps!
There are only 10 types of people in the world -
those who understand binary, and those who don't.
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! star in the left column!
10-23-2005 06:55 PM
On getting a command from user input, script will execute and send a result to command line.
10-23-2005 07:26 PM
For example the following PHP script:
will execute the command on the server. However in such a case since this comand will be executed with the web servers user rights (unless you configure it to run as root). So, you will not be able to run root commands.
For a more complete solution for system administration try Webmin
10-23-2005 08:14 PM