Last active
July 1, 2019 16:30
-
-
Save dedeibel/6807b892487fdb1c2aff43e28c0f2038 to your computer and use it in GitHub Desktop.
wait until a given hostname responds to ping
This file contains hidden or 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
#!/bin/bash | |
HOST=$* | |
while true; do ping -c1 "$HOST" > /dev/null && break; sleep 3 ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment