Created
December 19, 2016 05:39
-
-
Save jjnilton/ba06375050c368df1f4dda9a85629cab to your computer and use it in GitHub Desktop.
log ping
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
echo "Ping failures to 208.67.222.222" >/home/brad/pinglog | |
while true; do | |
if ! ping -c 1 -q 208.67.222.222 >/dev/null; then | |
date >> /home/brad/pinglog | |
fi | |
sleep 57 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment