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
[EMAIL PROTECTED]
-----Original Message-----
From: Tim Walberg [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 29, 1999 12:26 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
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 | [EMAIL PROTECTED] |
| Gurnee, IL 60031 | 800-SKY-TEL2 PIN 9353299 |
+------------------------------+--------------------------+