#!/bin/bashLAST_RATE=$(cat ./md5_12voip.txt | awk '{print $1}')lynx --dump http://www.12voip.com/en/calling-rates.html | \
grep -E 'Sweden|Spain' | md5sum > ./md5_12voip.txtNOW_RATE=$(cat ./md5_12voip.txt | awk '{print $1}')if [ $LAST_RATE = $NOW_RATE ]; thenecho "no change on rates"elseexport DISPLAY=:0 && zenity --info --text 'Betamax 12voip rates changed \
for Sweden or Spain, check page: http://www.12voip.com/en/calling-rates.html'fi
Sunday, April 17, 2011
script - checking Betamax rates with a cronjob
This little script can be extended or modified with your own sip providers. It is useful for me to keep and eye open with one of the providers that I'm currently using.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment