Created
September 12, 2014 04:25
-
-
Save MugunthKumar/3fcb7b5f63a309fc5b60 to your computer and use it in GitHub Desktop.
Apple Store Down
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/bash | |
function check { | |
status=`curl -Is http://store.apple.com/sg/ | grep "HTTP/1.1"` | |
echo ${status:9:3} | |
if [ "${status:9:3}" == "200" ]; then | |
while true; do | |
say "Its here... Its here... Its here" | |
echo -en "\007" | |
done | |
fi | |
} | |
while true; do | |
check | |
sleep 30s | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment