Skip to content

Instantly share code, notes, and snippets.

@bcg
Created January 25, 2016 15:59
Show Gist options
  • Save bcg/93f27c25d738c714b619 to your computer and use it in GitHub Desktop.
Save bcg/93f27c25d738c714b619 to your computer and use it in GitHub Desktop.
address=127.0.0.1
port=8080
echo "Waiting on TCP connection to $address:$port"
while ! exec 6<>/dev/tcp/${address}/${port}; do
sleep 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment