Last active
August 29, 2015 14:02
-
-
Save tbaschak/d5e56ab873e32648fe49 to your computer and use it in GitHub Desktop.
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 | |
function usage () | |
{ | |
echo "Usage:" | |
echo " $0 <IP6>" | |
echo "OR" | |
echo " $0 <IP6> | tee mylog.txt" | |
} | |
if [ $# -ne 1 ]; then | |
usage | |
exit 127 | |
fi | |
IP=$1 | |
while :; do ping6 -c 1 -W 1 $IP >/dev/null || date; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment