Created
September 13, 2012 13:59
Simple ping script to test connectivity. Used previously to build case against Comcast's terrible service even while not home.
This file contains 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
#!/bin/sh | |
# Simple script for checking network availability every 5 minutes | |
while true; do | |
ping -c 1 www.google.com &> /dev/null | |
echo "$? `date`" | tee -a ~/output.txt | |
sleep 300 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment