AC(8) BSD System Manager's Manual AC(8)NAME
ac -- display connect-time accounting
ac [-d] [-p] [-w file] [users ...]
A record of individual login and logout times are written to the system log by login(8) and launchd(8), respectively. The program ac exam-
ines these records and writes the accumulated connect time (in decimal hours) for all logins to the standard output.
-d Display the connect times in 24 hour chunks.
-p Display individual user totals.
Read raw connect time data from file, instead of the system log.
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.
SEE ALSO login(1), utmpx(5), launchd(8), sa(8)HISTORY
An ac command appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution April 19, 1994 4th Berkeley Distribution
Check Out this Related Man Page
AC(8) System Manager's Manual AC(8)NAME
ac - login accounting
/usr/sbin/ac [ -w wtmp ] [ -p ] [ -d ] [ people ] ...
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.
SEE ALSO init(8), sa(8), login(1), utmp(5).
4th Berkeley Distribution November 16, 1996 AC(8)
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??
: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)
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)
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
Sample_eve=`psg proc_s | grep tY`
for line in $Sample_eve... (41 Replies)
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.
cut -c7-26 "file1"
the out put i received is ... (48 Replies)
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)
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
10. Post Here to Contact Site Administrators and Moderators
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)
We are now beta testing our future "Live Chat" area using PubNub technology.
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)