Skip to content

Instantly share code, notes, and snippets.

@sinelaw
Created April 8, 2015 12:02
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 sinelaw/78c042f0af989b3d6efb to your computer and use it in GitHub Desktop.
Save sinelaw/78c042f0af989b3d6efb to your computer and use it in GitHub Desktop.
parallel ping
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