Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ac(8) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

init(8)

sa(8)

login(1)

utmp(5)

AC(8)  —  NEWS-OS Programmer’s Manual

NAME

ac − login accounting

SYNOPSIS

/etc/ac [ −w wtmp ] [ −p ] [ −d ] [ people ] ... 

DESCRIPTION

ac produces a printout giving connect time for each user who has logged in during the life of the current wtmp file.  A total is also produced. 

OPTIONS

−w wtmp
specifies an alternate wtmp file; without this options, /usr/adm/wtmp is used. 

−p prints individual totals; without this option, only totals are printed. 

−d causes a printout for each midnight to midnight period. 

people limits the printout to only the specified login names. 

The accounting file /usr/adm/wtmp is maintained by init and login.  Neither of these programs creates the file, so if it does not exist no connect-time accounting is done.  To start accounting, it should be created with length 0.  On the other hand if the file is left undisturbed it will grow without bound, so periodically any information desired should be collected and the file truncated. 

FILES

/usr/adm/wtmp

SEE ALSO

init(8), sa(8), login(1), utmp(5). 

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026