executing linux commands from web page and outputing it back to the web page
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
You can use cgi script to have the output written to the web page, but I don't think you can easily make it output to the console -the webpage has no way of knowing which console or terminal you are on.
It's important to note that the commands will be executed by the httpd server you are running, so they will run with the same username and group as the server itself. You have to be careful about what commands you let be run...
You can use it by placing it in your cgi-bin dir and making it executable, or you can change the name of it and open it directly in your browser.
- encrypted, using https
- password protected, using md5 hash
- used nodejs: simple to install and run, dont need apache etc
- can provide a whitelist of allowed commands
- built using nodejs, bootstrap, jquery, express, and angular
- opensource, MPL