Created
October 26, 2015 22:25
-
-
Save andyj/a1c9b619e32054746f70 to your computer and use it in GitHub Desktop.
Terminal script to sound alarm when an IP address is not reachable again
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
pingIpAddress=google.com | |
while : | |
do | |
ping -t 2 -o -c 1 $pingIpAddress || say ping to $pingIpAddress failing | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment