Last active
December 10, 2015 14:28
-
-
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
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
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