Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!utcs!lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: net.wanted.sources Subject: wanted: program to total up login sessions by time Message-ID: <391@lsuc.UUCP> Date: Tue, 12-Feb-85 11:41:26 EST Article-I.D.: lsuc.391 Posted: Tue Feb 12 11:41:26 1985 Date-Received: Tue, 12-Feb-85 14:26:23 EST Organization: Law Society of Upper Canada, Toronto Lines: 21 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