Skip to content

Instantly share code, notes, and snippets.

@neonichu
Forked from stuartcarnie/checkdev.sh
Created June 6, 2011 19:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neonichu/1010931 to your computer and use it in GitHub Desktop.
Save neonichu/1010931 to your computer and use it in GitHub Desktop.
Ping developer.apple.com and growl when it's up
#!/bin/sh
read -p "Apple Id: " appleid; echo
stty -echo
read -p "Password: " passw; echo
stty echo
while [ /bin/true ]; do
curl -s -u$APPLEID:$PASSW developer.apple.com/devcenter/ios/index.action | grep "soon" >/dev/null
if [ $? -eq 1 ]; then
echo "Done"
growlnotify -m "Done"
exit 0
fi
echo "Not yet"
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment