Last active
December 20, 2015 05:09
-
-
Save cruinh/6076590 to your computer and use it in GitHub Desktop.
lists just the apple developer portal services that are online right now. Meant to be used with Geektool (http://projects.tynsoe.org/en/geektool/)
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
echo "Apple Developer Services Online\n"; curl -s https://developer.apple.com/support/system-status/ | grep "online-icon.*href" | grep -o '<a href[[:print:]]*</a>' | grep -o '>.*<' | sed -e 's/.$//' -e 's/^.//' |
updated to list just the names of each online service (not their links)
updated again to use curl instead of lynx (thanks Jon... not sure why I didn't think of that first!)
...and to combine the sed commands into one (thanks again Jon!)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
requires lynx.
And the path to lynx may differ on your machine. This uses the default installation path I was given when I installed it through macports.