Skip to content

Instantly share code, notes, and snippets.

@chachan
Created June 15, 2017 15:59
Show Gist options
  • Save chachan/5541be2c00f9b0e040ed7799a21f5e53 to your computer and use it in GitHub Desktop.
Save chachan/5541be2c00f9b0e040ed7799a21f5e53 to your computer and use it in GitHub Desktop.
echo "hello world" on specific port
PORT=8000
while true; do echo "hello world" | nc -l ${PORT}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment