dave@lsuc.UUCP (David Sherman) (02/12/85)
I have a program called "logcount", which I wrote some time ago to total up users' login sessions from /usr/adm/wtmp and report time in hours and minutes. (It's slightly tricky, because you have to allow for overlapping logins on different ttys.) I'm wondering if anyone has something similar, before I attack my own. My version has several bugs, and needs additional options (like a total logcount for a user on a particular set of ttys only). If no-one has such a tool, I'll fix my own and post it, but someone out there has probably done it already. An awk script which works from the output of BSD's last(1) would be a useful alternative, but it would have to be fairly flexible. Dave Sherman The Law Society of Upper Canada Toronto (416) 947 3466 -- {utzoo pesnta nrcaero utcs}!lsuc!dave {allegra decvax ihnp4 linus}!utcsrgv!lsuc!dave
jsdy@hadron.UUCP (Joseph S. D. Yao) (02/22/85)
> I have a program called "logcount", which I wrote some time > ago to total up users' login sessions from /usr/adm/wtmp and report > time in hours and minutes. > I'm wondering if anyone has something similar, ... Have you tried ac -p (man 8 ac)?