Monthly Archives: June 2011
Notify on cbr.ru rates change
script for cron: #!/bin/bash TOMMOROW=$(date +”%d.%m.%Y” –date=”next day”) touch /var/tmp/cbr.log # just so that it exist curl http://cbr.ru/currency_base/D_print.aspx?date_req=01.01.2099 |\ sed ‘s/Курсы валют за 01.01.2099 не зарегистрированы\.//’ |\ sed ‘/<!–/,/–>/d’ |\ sed ‘/<script/,/<\/script>/d’ > /tmp/cbr.html if [ -z `cat /var/tmp/cbr.log | … Continue reading
Posted in Linux
Leave a comment