Last active
April 24, 2020 08:15
-
-
Save hieunt79/821ca5afe8c14df873a4ad06439fd2cd to your computer and use it in GitHub Desktop.
ping with timestamp
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
#!/bin/bash | |
for ip in {5..12} | |
do | |
ping 12.12.12.$ip| while read line; do echo `date` - $line; done >> node.$ip & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment