OSX terminal spell to notify you when internet connection is back

Wojciech Ziniewicz
Stories imported from wordpress
1 min readNov 19, 2013
Here's a simple loop that will notify you as soon as your internet connection is back. It will basically try to ping Google's first DNS server until it suceeds.[code language="shell"]
until ping -c1 8.8.8.8 ; do sleep 5; done && say "lol you're connection is back"
[/code]

--

--