Skip to content

Instantly share code, notes, and snippets.

@andrix
Created December 2, 2011 17:08
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 andrix/1424013 to your computer and use it in GitHub Desktop.
Save andrix/1424013 to your computer and use it in GitHub Desktop.
isup: simple script that query isup.me and tell you if a site is UP/DOWN (Shell script)
#!/bin/sh
for domain in $*; do
curl "http://www.isup.me/$domain" 2>/dev/null | grep "It's just you" > /dev/null
if [ $? -eq 0 ]; then
echo "$domain: UP"
else
echo "$domain: DOWN"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment