Update: of course I meant to say that the “Apple Store” is down, not the “App Store”.
Every time the App Store Apple Store goes down the world gasps with excitement. New Macs? Any hardware refreshes?
Here’s a script that you can execute at the command line that will notify you as soon as the store is back up. I found this script here and modified it to use the built-in say command instead of growlnotify which I did not have.
#! /bin/bash until [ 1 -eq 2 ] do echo -n "Checking ..." MYVAR=`curl -s http://store.apple.com/us | grep backsoon | grep australia` if [ "$MYVAR" == "" ] then if [ ! -f "/tmp/storeup.txt" ]; then echo "UP!" say "The Store is up!" echo "1" > /tmp/storeup.txt exit fi else echo "down" fi sleep 10 done |
To use it just paste this script into a file storecheck, make it executable and run it in terminal. This runs an endless loop and as soon as the store is up will say “The Store is up!”.
Categories: Apple