Skip to content

Instantly share code, notes, and snippets.

@mkweskin
Created September 7, 2018 18:58
Show Gist options
  • Save mkweskin/2b1a1daad1cc68707e77fe3f6a2729c5 to your computer and use it in GitHub Desktop.
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
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