1#!/bin/csh -f
2#
3# Once a week, produce a report and mail to people
4#
5set people=( postmaster usenet )
6set spooldir=/usr/spool/uucp
7set archdir=uucplog.archives
8
9cd $spooldir/$archdir
10nice +5 awk -f /usr/lib/uucp/sys_awk SYSLOG.[0-6] >& weekly_report
11Mail -s "Weekly UUCP Report" $people < weekly_report
12