3 # $NetBSD: monthly,v 1.10 2004/04/09 17:35:21 kim Exp $
4 # from: @(#)monthly 8.1 (Berkeley) 6/9/93
7 export PATH
=/bin
:/usr
/bin
:/sbin
:/usr
/sbin
10 if [ -s /etc
/monthly.conf
]; then
16 rcvar_manpage
='monthly.conf(5)'
18 echo "To: ${MAILTO:-root}"
19 echo "Subject: $host monthly output for $date"
22 MONTHLYDIR
=$
(mktemp
-d -t _monthly
) ||
exit 1
24 trap "/bin/rm -rf $MONTHLYDIR ; exit 0" EXIT INT QUIT PIPE
26 if ! cd "$MONTHLYDIR"; then
27 echo "Can not cd to $MONTHLYDIR".
34 # echo "Doing login accounting:"
37 if [ -f /etc
/monthly.
local ]; then
38 .
/etc
/monthly.
local > $TMP 2>&1
40 printf "\nRunning /etc/monthly.local:\n"