Created
October 9, 2014 17:06
-
-
Save Eun/fd1d83c1ed9e45e68087 to your computer and use it in GitHub Desktop.
Kimsufi Avability Checker
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 | |
while true | |
do | |
wget -O kimsufi http://www.kimsufi.com/en/order/kimsufi.cgi?hard=142sk1 | |
c=$(grep "Validate and go to the next step" kimsufi | wc -l) | |
if [ $c -ge 1 ] | |
then | |
echo "AVAIBLE" | |
afplay /System/Library/Sounds/Ping.aiff & | |
sleep 0.2 | |
afplay /System/Library/Sounds/Glass.aiff & | |
sleep 0.2 | |
afplay /System/Library/Sounds/Ping.aiff & | |
sleep 0.2 | |
afplay /System/Library/Sounds/Glass.aiff & | |
sleep 0.2 | |
afplay /System/Library/Sounds/Ping.aiff | |
exit 0 | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment