AC(1M)AC(1M)NAME
ac - login accounting
SYNOPSIS
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 pro-
duced. -w is used to specify an alternate wtmp file. -p prints individual totals; without this option, only totals are printed. -d
causes a printout for each midnight to midnight period. Any people will limit the printout to only the specified login names. If no wtmp
file is given, /usr/adm/wtmp is used.
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 undis-
turbed 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), login(1), utmp(5).
AC(1M)
Check Out this Related Man Page
AC(8) BSD System Manager's Manual AC(8)NAME
ac -- display connect time accounting
SYNOPSIS
ac [-d] [-p] [-w file] [users ...]
DESCRIPTION
If the file /var/log/wtmp exists, a record of individual login and logout times are written to it by init(8) and login(8) respectively. The
program ac examines these records and writes the accumulated connect time for all logins to the standard output.
Options available:
-d Display the connect times in 24 hour chunks.
-p Display individual user totals.
-w file
Read raw connect time data from file instead of the default file /var/log/wtmp.
users ...
Display totals for the given individuals only.
If no arguments are given, ac displays the total amount of login time for all active accounts on the system.
The default wtmp file is an infinitely increasing file unless frequently truncated. This is normally done by the daily daemon scripts sched-
uled by cron(8) which rename and rotate the wtmp files before truncating them (and keeping about a weeks worth on hand). No login times are
collected however, if the file does not exist.
FILES
/var/log/wtmp
/var/log/wtmp.[0-7] rotated files
SEE ALSO init(8), sa(8), login(1), utmp(5).
HISTORY
A ac command appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution April 19, 1994 4th Berkeley Distribution
Man Page
14 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
How i do i post a picture below my name as some of u have????
Is there a rule like only those who are moderators, administrators only can have a picture below their names???
If not, then kindly tell me how to post a picture below my name??
Thanks,
Nisha
:rolleyes: (44 Replies)
I am investigating some locking scheme using semaphores. To evaluate basic system speed I run a loop of getting some semaphore info and display it:
while : ; do ./semshow; done > res.txt
I ran this on 3 boxes - two similar modern HP XEON boxes, one running SCO OpenServer 5, the other is... (46 Replies)
Hello guys
I have been running a LAMP stack for awhile now but have never really explored the server side end of things. What I am trying to do is have a python script on a website run a bash command. This will accomplish a system so someone can create an account for proxy access via a webpage.... (45 Replies)
Hi
I am new to shell scripting and i am preparing a script.
for now i am work on a sub part of it..but i am unable to make it work.
---
the test code that i am working on
--------------------------
IFS=""
Sample_eve=`psg proc_s | grep tY`
n=0
for line in $Sample_eve... (41 Replies)
Hi
I tried to extract 19 characters (default) enclosed with in tag from a file using cut command. If the characters comprises of double space, the cut command gives the output with a single spacing.
file 1
<name>Kumar Rajasekaran</name>
cut -c7-26 "file1"
the out put i received is ... (48 Replies)
Hello,
How can I know if ORACLE Database is running slow due to Memory or due to processing power ?
I have only Oracle Database running on a P4 with 4GB RAM.
Could anyone suggest any tools which can help me determine exactly if it is memory issue or processor issue. (43 Replies)
Hello,
When listing the file systems (using ls -ltr) , if the group names are longer the group name is getting truncated.
Can someone help with the script which would display the truncated group name?
I appreciate if someone could help in this regard. (45 Replies)
I have an input file with contents like:
203969 OrdAcctCycChg USAGE_DAEMON1
203970 OrdAcctCycChg USAGE_DAEMON2
203971 OrdAcctCycChg USAGE_DAEMON3
203972 OrdAcctCycChg USAGE_DAEMON4
I need to extract variables in first column... (51 Replies)
Discussion started by: Rajesh Putnala
51 Replies
10. Post Here to Contact Site Administrators and Moderators
Hello. I've searched the site but can't find a link to what the "Bits" and "bank account" is on my user profile. Can someone link me or briefly explain? (76 Replies)
Hello to all,
I would like to search sequences of bytes inside big binary file.
The bin file contains blocks of information, each block begins is estructured as follow:
1- Each block begins with the hex 32 (1 byte) and ends with FF. After the FF of the last block, it follows 33.
2- Next... (59 Replies)
HI Folks -
I hope all is well! I have a business process where I manage a text file of substitution variables and their values for a target system. After updating, I run a script to push the changes to the target system.
However, I'm trying to develop a method to be able to automatically... (50 Replies)
Dear All,
We are now beta testing our future "Live Chat" area using PubNub technology.
https://community.unix.com/
This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork.
This "Live Chat" is not the... (48 Replies)
I was looking through the topics and I wasn't sure if this was the best place to post this question:
I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful.... (409 Replies)