Created
July 24, 2012 23:22
-
-
Save cicloid/3173324 to your computer and use it in GitHub Desktop.
Check is Mountain Lion is available
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/csh | |
while (1) | |
curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.7.4; en) AppleWebKit/533.20.25" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?id=29526&mt=12' | grep -i "mountain lion" > /dev/null | |
if ($? == 0) then | |
echo "Available" | |
say -v Vicki "MOUNTAIN LION MAY BE AVAILABLE. Go... go now and download it" | |
else | |
echo "Nada" | |
endif | |
sleep 600 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment