Created
November 18, 2013 22:26
-
-
Save hannic/7536492 to your computer and use it in GitHub Desktop.
Speak an Alert when Internet Connection is Online http://osxdaily.com/2013/11/18/detect-down-internet-connection-back-online/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+osxdaily+%28OS+X+Daily%29
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
# Define alias in .bash_profile | |
# from http://osxdaily.com/2013/11/18/detect-down-internet-connection-back-online/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+osxdaily+%28OS+X+Daily%29 | |
until ping -W1 -c1 127.0.0.1; do sleep 5; done && say the internet is back | |
# until ping -W1 -c1 yahoo.com; do sleep 5; done && open ~/BACKONLINE.jpg | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment