Skip to content

Instantly share code, notes, and snippets.

@andyj
Created October 26, 2015 22:25
Show Gist options
  • Save andyj/a1c9b619e32054746f70 to your computer and use it in GitHub Desktop.
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
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