From owner-freebsd-questions Tue Dec 16 12:38:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA27346 for questions-outgoing; Tue, 16 Dec 1997 12:38:34 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from info.tsu.tomsk.su (info.tsu.tomsk.su [194.226.48.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA27339 for ; Tue, 16 Dec 1997 12:38:30 -0800 (PST) (envelope-from vas@vas.tsu.tomsk.su) Received: (from uucp@localhost) by info.tsu.tomsk.su (8.8.5/8.8.2) with UUCP id DAA17067; Wed, 17 Dec 1997 03:38:47 +0700 (TSK) Received: (from vas@localhost) by vas.tsu.tomsk.su (8.8.8/8.8.8) id XAA03431; Tue, 16 Dec 1997 23:20:27 +0700 (KRS) From: Victor Sudakov Message-Id: <199712161620.XAA03431@vas.tsu.tomsk.su> Subject: Re: ac does not work in FreeBSD 2.2.2 In-Reply-To: from "Doug White" at "Dec 15, 97 11:59:26 am" To: dwhite@resnet.uoregon.edu Date: Tue, 16 Dec 1997 23:20:27 +0700 (KRS) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Doug White wrote: > On Mon, 15 Dec 1997, Victor Sudakov wrote: > > > Hello. > > > > How can this be that ``ac'' does not show anything while ``last'' works? > > Because you have to turn on accouting. I am afraid you are mistaken. AC(8) FreeBSD System Manager's Manual AC(8) NAME ac - connect time accounting SYNOPSIS ac [-dp] [-t tty] [-w wtmp] [users ...] DESCRIPTION If the file /var/log/wtmp exists, a record of individual login and logout times are written to it by login(1) and init(8), respectively. Ac exam- ines these records and writes the accumulated connect time (in hours) for all logins to the standard output. [...] FILES /var/log/wtmp connect time accounting file /var/log/wtmp.[0-7] rotated files [...] -- Victor Sudakov mailto:vas@obluo.tomsk.su http://www.obluo.tomsk.su/~vas PGP public key: finger vas@obluo.tomsk.su