*BSD News Article 30793


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!lll-winken.llnl.gov!seismo!darwin.sura.net!howland.reston.ans.net!spool.mu.edu!cass.ma02.bull.com!as02.bull.oz.au!melb.bull.oz.au!zen!sjg
From: sjg@zen.void.oz.au (Simon J. Gerraty)
Subject: Re: Connect Time reporting utility? "ac" (FreeBSD 1.1)
Message-ID: <1994May16.235130.27065@zen.void.oz.au>
Organization: Zen programming...
Date: Mon, 16 May 1994 23:51:30 GMT
References: <2qsf2e$gvc@news.tamu.edu>
Lines: 29

hickman@prism.tamu.edu (Dan Hickman) writes:
>I am looking for a version of the ac utility (or similar) that
>reports user login time summaries.  I understand that it is not
>included in FreeBSD because it contains AT&T code.  Is there
>another implementation?  Is it planned for a release of FreeBSD

ac(8) is in NetBSD-current.  I did the implementation and I'd see no
problem with FreeBSD using it.  I did not write the man page though,
so you'd have to check in the NetBSD tree for ac.8 and whether you can
use it - or write your own.  I have not updated my system since before
ac(8) was incorporated into the tree so can't tell you the answer to
that. 

NetBSD's ac(8) is compatible with SunOS 4.0 at least in that it can
produce the same results from the same wtmp file as ac on my sun386i.
The new ac has some (IMHO) useful new features, in that you can tell
it to only do accouting for certain tty's or to exclude certain tty's
I use:

	ac -p -t 'tty0*' > modems
	ac -p -t '!tty0*' > others

in my monthly accounting script to ``charge'' modem logins at a
different rate to others.

-- 
Simon J. Gerraty        <sjg@zen.void.oz.au>

#include <disclaimer>   /* imagine something _very_ witty here */