Skip to content

Instantly share code, notes, and snippets.

@AriX
Created July 24, 2012 23:06
Show Gist options
  • Save AriX/3173252 to your computer and use it in GitHub Desktop.
Save AriX/3173252 to your computer and use it in GitHub Desktop.
#! /bin/csh
while (1)
curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; 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 "MOUNTAIN LION MAY BE AVAILABLE"
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