update-banlist

#!/bin/sh
TMPFILE=`mktemp /tmp/banned-content.XXXXXX` || exit 1

curl --silent \
    'http://www.communitywiki.org/en/raw/BannedContentIntro' \
    > $TMPFILE

echo >> $TMPFILE

curl --silent \
    'http://www.emacswiki.org/cgi-bin/wiki/raw/BannedContent' \
    | grep '^ ' >> $TMPFILE

/home/alex/bin/wikiput \
      -s 'copy from BannedContent on EmacsWiki, http://www.emacswiki.org/cgi-bin/wiki/raw/BannedContent' \
      -u 'BannedContentDiscussion' \
      -m 'yes' \
      -p '5nz75g467a5b67' \
      'http://www.communitywiki.org/en/BannedContent' \
    < $TMPFILE

rm $TMPFILE

sleep 20

wget -q -O /home/alex/communitywiki.org/despam.html \
     -U "cron job" \
     'http://www.emacswiki.org/cw?action=despam'

Languages: