Created
June 3, 2016 16:18
-
-
Save ghing/c9c695090375e54d2e76e3d7b51e9135 to your computer and use it in GitHub Desktop.
Script I ran to notify me when the IPRA portal, http://portal.iprachicago.org came out from behind basic auth on Friday, June 3, 2016
This file contains hidden or 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 | |
while true; do | |
wget http://portal.iprachicago.org/ 2>/dev/null | |
if [ $? -ne 0 ]; then | |
echo "Portal is not live" | |
else | |
osascript -e 'display notification "Live!"' | |
break | |
fi | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment