#!/bin/csh -f
#
# Once a week, produce a report and mail to people
#
set people=( sms )
set spooldir=/usr/spool/uucp
set archdir=uucplog.archives

cd $spooldir/$archdir
nice +5 awk -f /etc/uucp/sys_awk SYSLOG.[0-6] >& weekly_report
Mail -s "Weekly UUCP Report" $people < weekly_report
