Skip to content

Instantly share code, notes, and snippets.

@scaint
Created March 18, 2015 19:37
Show Gist options
  • Save scaint/81514dcdb8593c23531d to your computer and use it in GitHub Desktop.
Save scaint/81514dcdb8593c23531d to your computer and use it in GitHub Desktop.
A simplest "web server" shell script
#!/bin/sh
while :; do nc -l 9292 <<< $'HTTP/1.1 200 OK\r\nHello, world!'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment