[K12OSN] Tracking usage
Christopher K. Johnson
ckjohnson at gwi.net
Wed May 5 19:36:58 UTC 2004
Roger wrote:
>I would like to be able to track usage for our LTSP. I was thinking along
>the lines of a .login/.logout script that would toggle a database with
>$USERNAME,$HOSTNAME, start-time,stop-time.
>
>
As root the command 'last' shows login times and durations from
/var/log/wtmp or file specified with -f so you could use it on rotated
log files (e.g. last -f /var/log/wtmp.1).
See 'man last' for more info.
--
-----------------------------------------------------------
"Spend less! Do more! Go Open Source..." -- Dirigo.net
Chris Johnson, RHCE #807000448202021
More information about the K12OSN
mailing list