lkml.org 
[lkml]   [1999]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: slightly off-topic trivia probe
Date

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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.036 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site