#!/bin/sh
# Script to go through /etc/news/nntpsend.ctl and send news to all the
# hosts listed in there.
# - Elliot Lee <sopwith@cuc.edu>

for I in `grep -E '^[a-zA-Z0-9.]+:[a-zA-Z0-9.]+' /etc/news/nntpsend.ctl`; do
	eval `echo $I | \
awk -F: '{print "su - news -c \"/usr/lib/news/bin/nntpsend",$1,$2,"\""}'`
done
