#!/bin/bash # export PATH=$PATH:/home/bre/bin:/home/bre/forritun/perl/rssticker export http_proxy=http://localhost:18080/ [ "$RSSDEBUG" != "" ] && echo "Killing old processes..." killall blog2rss.pl html2rss.pl 2>/dev/null >/dev/null killall -9 blog2rss.pl html2rss.pl 2>/dev/null >/dev/null # Mogginn! # [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for mbl.is" cd /home/bre/www/misc/rss/islenskt #nice mbl2rss.sh >/dev/null 2>/dev/null & /home/bre/forritun/perl/link-spider/mbl-spider.pl & sleep 25 # Textavarpið! # [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for textavarp.is" nice tv2rss.pl http://www.textavarp.is:80/300/ http://www.textavarp.is:80/ >tv-300.rss sleep 10 nice tv2rss.pl http://www.textavarp.is:80/102/ http://www.textavarp.is:80/ >tv-102.rss sleep 10 nice tv2rss.pl http://www.textavarp.is:80/103/ http://www.textavarp.is:80/ >tv-103.rss sleep 10 # Vísir [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for visir.is" nice html2rss.pl \ 'http://www.visir.is/ifx/?MIval=frettir_btm&v=2' \ 'http://www.visir.is' \ 'visir:
/dev/null 2>/dev/null & sleep 20 # Bæjarins besta [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for bb.is" nice html2rss.pl \ 'http://www.bb.is/frettir/askrift.php3?uid=0' \ 'http://www.bb.is/frettir/' \ 'bb:e-mail.gif">' \ 'discard:phpAds' >/dev/null 2>/dev/null & sleep 20 # Eyjafréttir [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for eyjafrettir.is" nice html2rss.pl \ 'http://www.eyjafrettir.is/askrift.php3?uid=0' \ 'http://www.eyjafrettir.is/' \ 'eyjafrettir:Miðhluti endar' \ 'discard:phpAds' \ 'discard:eldri.php' >/dev/null 2>/dev/null & sleep 20 # Patreksfjörður [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for patreksfjordur.is" nice html2rss.pl \ http://www.patreksfjordur.is/staff.phtml \ http://www.patreksfjordur.is/ \ 'tidis:Eldri fr' \ 'discard:Eldra efni' >/dev/null 2>/dev/null & sleep 20 # Same for Röskva # [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for Röskva" nice blog2rss.pl 'http://www.hi.is/~roskva/frettir.html' \ 'http://www.hi.is/~roskva/velja.php3?birta=frettir&mal=islenska&fs=Fréttir' \ transient >roskva.rss # Allir einföldu bloggerarnir for blog in $(grep -v ^\# Bloggers.txt | /home/bre/bin/random); do [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for: $blog" BLOGNAME=$(echo "$blog" | cut -d, -f1) BLOGSRC=$(echo "$blog" | cut -d, -f2) # BLOGBASE=$(echo "$blog" | cut -d, -f2 | sed -e 's/blogger.html\?//i') nice blog2rss.pl "$BLOGSRC" "$BLOGSRC" transient 2>/dev/null >$BLOGNAME.rss sleep 20 done # Bjánalegu bloggin, þar sem ég leita bara að heildarbreytingum for blog in $(grep -v ^\# Static.txt); do [ "$RSSDEBUG" != "" ] && echo "Creating RSS files for: $blog" PAGENAME=$(echo "$blog" | cut -d, -f1) PAGESRC=$(echo "$blog" | cut -d, -f2) lynx -source http://rss.molar.is/mon.cgi/$PAGESRC 2>/dev/null >$PAGENAME.rss.new \ && mv -f $PAGENAME.rss.new $PAGENAME.rss sleep 20 done