|
|
1.1 ! root 1: .\" Copyright (c) 1980 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)ac.8 6.1 (Berkeley) 4/27/85 ! 6: .\" ! 7: .TH AC 8 "April 27, 1985" ! 8: .UC 4 ! 9: .SH NAME ! 10: ac \- login accounting ! 11: .SH SYNOPSIS ! 12: .B /etc/ac ! 13: [ ! 14: .B \-w ! 15: wtmp ] [ ! 16: .B \-p ! 17: ] [ ! 18: .B \-d ! 19: ] [ people ] ... ! 20: .SH DESCRIPTION ! 21: .I Ac ! 22: produces a printout giving ! 23: connect time ! 24: for each user who has logged in ! 25: during the life of the current ! 26: .I wtmp ! 27: file. ! 28: A total is also produced. ! 29: .B \-w ! 30: is used to specify an alternate ! 31: .IR wtmp "" ! 32: file. ! 33: .B \-p ! 34: prints individual totals; without this option, ! 35: only totals are printed. ! 36: .B \-d ! 37: causes a printout for each midnight to midnight ! 38: period. ! 39: Any ! 40: .I people ! 41: will limit the ! 42: printout to only the specified login names. ! 43: If no ! 44: .IR wtmp "" ! 45: file is given, ! 46: .I /usr/adm/wtmp ! 47: is used. ! 48: .PP ! 49: The accounting file ! 50: .I /usr/adm/wtmp ! 51: is maintained by ! 52: .I init ! 53: and ! 54: .I login. ! 55: Neither of these programs creates the file, ! 56: so if it does not exist ! 57: no connect-time accounting is done. ! 58: To start accounting, it should be created with length 0. ! 59: On the other hand if the file is left undisturbed it will ! 60: grow without bound, so periodically any information ! 61: desired should be collected and the file truncated. ! 62: .SH FILES ! 63: /usr/adm/wtmp ! 64: .SH "SEE ALSO" ! 65: init(8), sa(8), login(1), utmp(5).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.