Skip to content

Instantly share code, notes, and snippets.

@Eun
Created October 9, 2014 17:06
Show Gist options
  • Save Eun/fd1d83c1ed9e45e68087 to your computer and use it in GitHub Desktop.
Save Eun/fd1d83c1ed9e45e68087 to your computer and use it in GitHub Desktop.
Kimsufi Avability Checker
#!/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