RE: slightly off-topic trivia probe

George Gallen (ggallen@slackinc.com)
Fri, 29 Oct 1999 14:50:59 -0400


Why not use 'last' --> 'awk' --> 'sort' then use a script at
that point to add up the values. This way your not dealing
with wtmp at all.

George Gallen
ggallen@slackinc.com

-----Original Message-----
From: Tim Walberg [mailto:twalberg@terabridge.com]
Sent: Friday, October 29, 1999 12:26 PM
To: linux-admin@vger.rutgers.edu; linux-config@vger.rutgers.edu;
linux-kernel@vger.rutgers.edu
Subject: slightly off-topic trivia probe

First off, please forgive the cross-posting and the irrelevance
of the topic. I'm not sure there is an appropriate mailing
list for this particular question...

I'm trying to develop a quick and dirty login accounting
utility which scans wtmp for information (I know, it's not
the most reliable or complete, etc...), and can't seem
to find any information on the significance of the tv_usec
field in struct utmp.ut_tv. It seens to have values in
it quite often, but they don't make much sense as durations
or any of my other "guesses"...

This is a RedHat 6.0 based system, but I suspect wtmp is
fairly standard across distributions...

tw

-- 
+------------------------------+--------------------------+
| Tim Walberg                  | Phone: 847-782-2472      |
| TERAbridge Technologies Corp | FAX:   847-623-1717      |
| 1375 Tri-State Parkway       | twalberg@terabridge.com  |
| Gurnee, IL 60031             | 800-SKY-TEL2 PIN 9353299 |
+------------------------------+--------------------------+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/