3 ms·
Ah, I had posted a golfed silly gawk webserver here some time ago. It uses gawk's built in tcp. https://news.ycombinator.com/item?id=22085459 https://news.ycom
by tyingq 3y ago
Ah, I had posted a golfed silly gawk webserver here some time ago. It uses gawk's built in tcp.
https://news.ycombinator.com/item?id=22085459 https://news.ycombinator.com/item?id=22085459
Pretty printed: https://gist.github.com/tyingq/4e568425e2e68e6390f3105e588787c6 https://gist.github.com/tyingq/4e568425e2e68e6390f3105e58878...
- tripflag 3y agoneat! i was aware of bash's built-in tcp client at /dev/tcp, but gawk being able to function as a tcp server is way cooler. Thanks for that bit of knowledge :>
- dzove855 3y agoActually, bash has now a loadable builtin to listen on tcp socket. I wrote a script and the patch. https://github.com/dzove855/Bash-web-server https://github.com/dzove855/Bash-web-server The patch is now included in bash 5.2