645ee40728
weekly and monthly scripts. - Update FILES section in manpages.
30 lines
508 B
Bash
30 lines
508 B
Bash
#!/bin/sh -
|
|
#
|
|
# $NetBSD: monthly,v 1.8 2000/01/10 17:03:49 ad Exp $
|
|
# from: @(#)monthly 8.1 (Berkeley) 6/9/93
|
|
#
|
|
|
|
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 ""
|
|
|
|
# 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
|