I'm attempting to make a small node executable which has the ability to open a local shell and send and receive commands to a HTTP server.
Seems simple enough logically but what would be the best practice in implementing this?
- Open a command line using Node API
- Listen for commands from server URL /xmlrpc-urlhere/
- When a command is received via Ajax or WebRTC? Execute it in command line
- POST the command line response back to the user
This shell will be for administrative purposes.
I can't think of a good way of doing this, I've checked npm and it would seem there are some basic command line modules for node js but nothing that has this functionality.