Created
September 7, 2018 18:58
-
-
Save mkweskin/2b1a1daad1cc68707e77fe3f6a2729c5 to your computer and use it in GitHub Desktop.
Ping an ip every 5 seconds and log output. ping options work on Mac, not sure about other OS's
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
while [ 1 ]; do date; ping -o -q -t 3 x.x.x.x >/dev/null && echo PASS || echo FAIL; sleep 5; done >~/pinglog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment