Skip to content

Instantly share code, notes, and snippets.

@idlecool
Created January 7, 2013 20:31
Show Gist options
  • Save idlecool/4478131 to your computer and use it in GitHub Desktop.
Save idlecool/4478131 to your computer and use it in GitHub Desktop.
if [ $(nslookup -query=ns sd.gs | grep linode | wc -l) -ne 0 ]
then
if [ ! -f /tmp/sdgsnotified ]
then
echo "Its Live" | mail -s "sd.gs status" idlecool@gmail.com
touch /tmp/sdgsnotified
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment