#!/bin/sh BLOG=/home/users/s/si/sisob/tmp/p2a.sisob.$$ # download today's blog #/usr/bin/wget -qO $BLOG $(date +"http://sisob.tuxfamily.org/pyblosxom.cgi/%G/%m/%d/?flav=advo") #/usr/bin/wget -qO $BLOG http://localhost/cgi-bin/pyblosxom.cgi/2003/08/13/?flav=advo /usr/bin/wget -qO $BLOG $(date +"http://sisob.tuxfamily.org/archives/%G_%m_%d.html") # check if there's any content if [ "$(wc -l $BLOG | cut -d' ' -f7)" != "0" ]; then /home/users/s/si/sisob/advodiary --source=$BLOG 2>/dev/null # cat $BLOG fi # clean up #rm -f $BLOG