#! /bin/sh # This is how I do it on seismo. umask 002 # Prevent additions to history file while expire is running mv /usr/bin/rnews /usr/bin/rnews.x echo 'exec cat >/usr/spool/news/rnews.$$' >/usr/bin/rnews chmod 4755 /usr/bin/rnews /etc/chown news /usr/bin/rnews # actually expire the articles cd /usr/lib/news /usr/lib/news/expire -v2 -a net.lang.f77,net.lang.c,net.bugs,net.cooks,net.news.newsite,dc.dining # get a fresh logfile cd /usr/spool/log mv news.5 news.6 mv news.4 news.5 mv news.3 news.4 mv news.2 news.3 mv news.1 news.2 mv news.0 news.1 mv news news.0 cp /dev/null news /etc/chown news news* # turn rnews loose mv /usr/bin/rnews.x /usr/bin/rnews cd /usr/spool/news for i in rnews.* do /usr/bin/rnews <$i rm -f $i done