I want to create a generic server (on a Linux machine) such that when someone connects to the server's port, they can enter one line, which is then passed as an argument to the server, which processes it by executing a command with the line being the parameters, and then returns its output.
I am pretty sure there is a "generic" way of defining such a server using linux commands -- any ideas what those might be?