Skip to content

Instantly share code, notes, and snippets.

@Dviejopomata
Created September 24, 2018 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dviejopomata/75d28e784c60d0fe74d918cc4f9d822c to your computer and use it in GitHub Desktop.
Save Dviejopomata/75d28e784c60d0fe74d918cc4f9d822c to your computer and use it in GitHub Desktop.
IP=$1
PORT=$2
echo "Waiting for $IP to be accesible on $PORT..."
while ! nc -z $IP $PORT; do
sleep 0.5
done
notify-send "Server $IP is up"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment