#!/bin/bash # $Id$ ## Articles that can't be posted for some reason are instead put into ## $DIR, where they can be retried on a regular basis. This script does it. DIR=/home/tskirvin/news/cache NNTPSERVER=news.killfile.org export NNTPSERVER for i in `ls $DIR`; do echo "/usr/bin/inews -h $DIR/$i" RETURN=`/usr/bin/inews -h $DIR/$i` if [ "x$?" = "x0" ]; then echo "removing $DIR/$i" rm $DIR/$i fi done