Skip to content

Instantly share code, notes, and snippets.

@cicloid
Created July 24, 2012 23:22
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 cicloid/3173324 to your computer and use it in GitHub Desktop.
Save cicloid/3173324 to your computer and use it in GitHub Desktop.
Check is Mountain Lion is available
#!/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