Skip to content

Instantly share code, notes, and snippets.

@MugunthKumar
Created September 12, 2014 04:25
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 MugunthKumar/3fcb7b5f63a309fc5b60 to your computer and use it in GitHub Desktop.
Save MugunthKumar/3fcb7b5f63a309fc5b60 to your computer and use it in GitHub Desktop.
Apple Store Down
#!/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