Created
March 22, 2014 03:32
-
-
Save adkatrit/9700694 to your computer and use it in GitHub Desktop.
Internet detection via say
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
#Usage: netz google.com | |
function netz(){ | |
while :; do ping -W1 -c1 -n $1 > /dev/null && say "internet alert"; sleep 1; done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment