Annotation of src/etc/monthly, Revision 1.8
1.1 cgd 1: #!/bin/sh -
2: #
1.8 ! ad 3: # $NetBSD: monthly,v 1.7 1998/09/15 05:06:31 lukem Exp $
1.6 mikel 4: # from: @(#)monthly 8.1 (Berkeley) 6/9/93
1.1 cgd 5: #
6:
1.7 lukem 7: export PATH=/bin:/usr/bin:/sbin:/usr/sbin
1.5 mrg 8: umask 077
9:
10: if [ -s /etc/monthly.conf ]; then
11: . /etc/monthly.conf
12: fi
1.7 lukem 13:
14: host=`hostname`
15: date=`date`
16:
17: echo "To: ${MAILTO:-root}"
18: echo "Subject: $host monthly output for $date"
19: echo ""
1.5 mrg 20:
1.1 cgd 21: # echo ""
22: # echo "Doing login accounting:"
23: # ac -p | sort -nr +1
1.2 cgd 24:
1.8 ! ad 25: if [ -f /etc/monthly.local ]; then
! 26: echo ""
! 27: echo "Running /etc/monthly.local:"
! 28: . /etc/monthly.local
! 29: fi
CVSweb <webmaster@jp.NetBSD.org>