Created
September 24, 2018 09:37
-
-
Save Dviejopomata/75d28e784c60d0fe74d918cc4f9d822c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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