Run Bash commands from web

Run Bash commands from a webserver and return the output to the response

The above need was given to my by a friend of mine. He asked for a “As simple as possible” way to run and show potential output to a web request’s response.

After some minutes of research I got a simple way with nodejs.

Here are the code returning the above sample:

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top