1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh - # # $Id: 200.accounting,v 1.2 1998/02/09 11:36:43 danny Exp $ # W=/var/log/wtmp if [ -f ${W}.0 ] ; then if [ -x /usr/sbin/ac ] ; then echo "" echo "Doing login accounting:" ac -p -w ${W}.0 | sort -nr +1 fi fi