NetBSD/etc/monthly

30 lines
508 B
Plaintext
Raw Normal View History

1993-03-21 12:45:37 +03:00
#!/bin/sh -
#
# $NetBSD: monthly,v 1.8 2000/01/10 17:03:49 ad Exp $
1997-02-15 13:02:07 +03:00
# from: @(#)monthly 8.1 (Berkeley) 6/9/93
1993-03-21 12:45:37 +03:00
#
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
umask 077
if [ -s /etc/monthly.conf ]; then
. /etc/monthly.conf
fi
host=`hostname`
date=`date`
echo "To: ${MAILTO:-root}"
echo "Subject: $host monthly output for $date"
echo ""
1993-03-21 12:45:37 +03:00
# echo ""
# echo "Doing login accounting:"
# ac -p | sort -nr +1
if [ -f /etc/monthly.local ]; then
echo ""
echo "Running /etc/monthly.local:"
. /etc/monthly.local
fi