Skip to content

Instantly share code, notes, and snippets.

@ssimpson89
Created June 13, 2014 18:31
Show Gist options
  • Save ssimpson89/8bd99cab05534c4e93ea to your computer and use it in GitHub Desktop.
Save ssimpson89/8bd99cab05534c4e93ea to your computer and use it in GitHub Desktop.
Ping Script
for i in $@
do
ping -q -c 1 -W 1 ${1} >/dev/null
if [[ $? == 0 ]]
then
echo $1 OK
else
echo $1 FAILED
fi
shift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment