Hacker News new | past | comments | ask | show | jobs | submit login

You can actually write a web server in pure bash, with no netcat, using /dev/tcp (bash magic). https://www.gnu.org/software/bash/manual/html_node/Redirecti... http://www.linuxjournal.com/content/more-using-bashs-built-d...



That's demonstrating an HTTP client, not a server. I don't think there's a way to make /dev/tcp accept incoming connections.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: