Skip to content

Instantly share code, notes, and snippets.

@ghing
Created June 3, 2016 16:18
Show Gist options
  • Save ghing/c9c695090375e54d2e76e3d7b51e9135 to your computer and use it in GitHub Desktop.
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
#!/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