standard i/o scriped "server" savers #6110
Replies: 5 comments 1 reply
-
shell script
https://github.com/TooTallNate/bashttpd
https://gist.github.com/dubiouscript/e90a515b6ee2b5fe8988b945b0cdb418#file-bashttpd +gzip https://gitlab.com/lordratte/tishlywiki ( written in bash and JavaScript and can probably run on most Linux environments )
... it should be posible to use jsfunc or similar to convert some of the examples in 'Add support for running external shell tasks' PR by removing the (repeated) server cfg
and just reading/writing from i/o |
Beta Was this translation helpful? Give feedback.
-
https://github.com/vi/websocat Netcat, curl and socat for WebSockets.
https://github.com/joewalnes/websocketd
|
Beta Was this translation helpful? Give feedback.
-
😎 awk out of the few awk www servers i happen to have found this one ( crossbowerbt/awk-webserver ) or to put it in the parlance of modertimes 🐶 awk-webserver wow! somuch so that while messing around "testing" it out i just copyed the raw request text from dev console into a varable the above is perhaps easyer to read
*somefile.html eg empty.html
which all though is shorter in LOC its less "composable" than the other example eg : handles the conection without need for socat ect that said ... modifications to handle POST request/data paths -using existsing existing tw-savers , eg setting $:/UploadURL to point to the "server" http://address:port
see also 🖖 |
Beta Was this translation helpful? Give feedback.
-
Thanks @dubiouscript great stuff, some interesting tools there. |
Beta Was this translation helpful? Give feedback.
-
another one , that just caught my attention not actually a server but related , but an example of using node in a pipe |
Beta Was this translation helpful? Give feedback.
-
servers that use * "some program" to
listen on a port
and printing the incoming request(s)
which are read by the "server" script via standard input
that "responds" to request via standard output
*netcat socat nc ( plus some arguments , script path , ect) ect
has any one come across any other examples of this kind of scriptable server ..
Beta Was this translation helpful? Give feedback.
All reactions