Last active
December 29, 2015 13:09
-
-
Save frantzmiccoli/7675188 to your computer and use it in GitHub Desktop.
OVH Sold Out helper. A 2 cents bash script to help you monitor when OVH sold-out will finally end. It works on Mac OSX Mountain Lion, it needs to be tested/adapted for other OS.
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/bash -- | |
# To use it | |
# watch -n 15 check-ovh-sold-out.sh | |
if r=`curl http://www.ovh.com/fr/serveurs_dedies/|grep mSP|grep -s -m 1 "Sold Out"` | |
then | |
echo "Found this wonderful sold out message!" | |
else | |
message="OVH is back in business" | |
terminal-notifier -message $message -title="Guess what?" 2>&1 > /dev/null || echo $message | |
say $message 2>&1 > /dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment