|
|
1.1 ! root 1: #!/bin/sh ! 2: # @(#)uudemon.admi 1.2 ! 3: # ! 4: # This shell sends uucp status information to an administrator. ! 5: # It should started by a line in /usr/lib/crontab. ! 6: # e.g. ! 7: # ! 8: # 48 8,12,16 * * * /bin/su uucp -c "/usr/lib/uucp/uudemon.admin" > /dev/null ! 9: # ! 10: set +e ! 11: ! 12: export PATH ! 13: PATH=/bin:/usr/bin ! 14: MAILTO=uucp ! 15: LOGDIR=/usr/spool/uucp/.Log ! 16: ULOG=$LOGDIR/uucico ! 17: TMP=/tmp/uu$$ ! 18: ! 19: (uustat -p; uustat -q) > $TMP ! 20: if [ -s $TMP ] ! 21: then ! 22: (echo "Subject: uu-status"; cat $TMP) | mail $MAILTO ! 23: fi ! 24: grep passwd $ULOG/* > $TMP ! 25: if [ -s $TMP ] ! 26: then ! 27: (echo "Subject: passwd check"; cat $TMP) | mail $MAILTO ! 28: fi ! 29: rm $TMP ! 30:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.