Created
November 25, 2016 18:32
-
-
Save PanJarda/43845fb256cdb8360b4bce55816f500d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Sleduje online prenos zapasu a pri zmene skore odesle sms pres script sms.sh. | |
source ~/shell/colors.sh | |
skoreOld="" | |
skore="" | |
yellow "\n SMS ONLINE SPORT CHECKER \n" | |
while [ 1=1 ] | |
do | |
wget -q http://www.onlajny.com/match/index/date/2014-04-27/id/102805 | |
skore=`grep "hlavniSkore" 102805 | sed 's/item_102805_1//g; | |
s/\t//g; | |
s/total2//g; | |
s/[^0-9:]//g'` | |
rm 102805 | |
if [ "$skoreOld" != "$skore" ] | |
then | |
~/shell/sms.sh "USA - CR: $skore" | |
echo -n `date +%T` | |
echo " $skore" | |
fi | |
skoreOld=$skore | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment