Skip to content

Instantly share code, notes, and snippets.

@mwalters
Last active December 10, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwalters/4447306 to your computer and use it in GitHub Desktop.
Save mwalters/4447306 to your computer and use it in GitHub Desktop.
Ping a provided hostname/IP and show a timestamp along with the ping response
ping -i 5 $1 | while read pong; do echo "$(date '+%Y-%m-%d %T'): $pong"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment