Show HN: Script-httpd – Turn command line scripts into web services
github.com
github.com
If you've used netcat before you know how useful it can be, but also be very careful ever exposing it to the internet (or even your LAN if there could be malicious users connected).
Can we use pipes of commands for processing?
Is it possible to avoid creating processes along the way - to have a sort of precompiled service in memory, waiting for requests?
script-httpd bash -c 'some_command | some_other_command 2>&1'
For having a longer running service in the background it might make more sense to just use something like nginx as a reverse proxy. It is something I've been pondering though.
websocketd uses the WebSocket protocol for streaming scripts, whereas script-httpd uses plain HTTP for terminating scripts.
very cool. could be pretty useful :)