Created
December 2, 2011 17:08
-
-
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)
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/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