#!/bin/sh
#
# @(#)proc-wtmp.sh,v 1.3 2004/04/23 06:14:32 kim Exp
#
# Print accounting info from wtmp
#
# 1996-09-07  Kimmo Suominen
#
PATH=/usr/pkg/sbin:/usr/pkg/bin:/bin:/usr/bin:/usr/sbin
export PATH
#
if [ -z "$1" ]
then
    wtmpfile=""
else
    wtmpfile="-w $1"
fi
#
ac -p $wtmpfile | sort -nr +1
