Skip to content

Instantly share code, notes, and snippets.

@andyj
Created October 26, 2015 22:21
Show Gist options
  • Save andyj/771776d311dc47d8dc0f to your computer and use it in GitHub Desktop.
Save andyj/771776d311dc47d8dc0f to your computer and use it in GitHub Desktop.
Terminal script to sound alarm when an IP address is reachable again
pingAddress=google.com
while :
do
ping -t 2 -o pingAddress && say ping $pingAddress working
sleep 2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment