alexandrus91/remote_cmd — reverse-engineered prompt
Reverse engineered prompt
Build me a small Node.js tool called remote_cmd that lets me run a command on another computer from my terminal. I want one script to act as the server on the remote machine, and another script to act as the client that sends the command and prints back the result.
Keep it simple and easy to use. The server should listen on a port, receive a command, run it, then return the output or error text. The client should let me type the server address, port, and command from the command line. Add basic setup steps so I can install dependencies and test it locally with two terminals.
Please make the code readable, handle obvious errors like missing command or connection failure, and include a short README that explains how to start the server and send a command. Look up current Node docs online if you need to.
Want more depth? Deep Reverse