#! /bin/sh
#
# Assumes that there is NNTP available on this machine..
#
# Set the following to be the hostname of your NNTP server (your linux
# machine if you are running term.

HOSTNAME=xavier.

cd ~/n  # Or where ever the data files for nntpxfer are...

while (true)
	do
	nntpxfer $HOSTNAME > a.x < act.xav
	if [ -s a.x ]; then
		mv act.xav.2 act.xav.3
		mv act.xav.1 act.xav.2
		mv act.xav act.xav.1
		mv a.x act.xav
	fi

su news <<end_end
/usr/lib/newsbin/input/newsrun
end_end

	echo done
	sleep 500
done



