Created
April 8, 2015 12:02
-
-
Save sinelaw/78c042f0af989b3d6efb to your computer and use it in GitHub Desktop.
parallel ping
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
cat hosts | xargs -P 0 -n1 -ihost bash -c 'ping -q -W 1 -c 1 host &> /dev/null || echo host failed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment