Skip to content

Instantly share code, notes, and snippets.

@tbaschak
Last active August 29, 2015 14:02
Show Gist options
  • Save tbaschak/d5e56ab873e32648fe49 to your computer and use it in GitHub Desktop.
Save tbaschak/d5e56ab873e32648fe49 to your computer and use it in GitHub Desktop.
#!/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