Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ac(1m) [v7 man page]

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

wtmpconvert(8)						      System Manager's Manual						    wtmpconvert(8)

NAME
wtmpconvert - Modify connect time accounting records from DIGITAL UNIX releases 4.0x and prior to new format SYNOPSIS
/usr/lbin/wtmpconvert [-vnrp?h] input_file [output_file] OPTIONS
Restore new format to old format. Verbose. Display lines while converting. Do not preserve contents of input file. Formatted print only. Do not convert. (May be used with the -r option). Display usage message. DESCRIPTION
The wtmpconvert command reads records from a connect time accounting file, such as /var/adm/wtmp, and converts the record format to the updated struct utmp format. If no output file is specified or if the output file path is identical to the input file path, wtmpconvert makes a backup copy of the original input file using the following algorithm: If filename.orig exists. Where n is a unique number. The wtmpconvert command attempts to detect an input file that is in the wrong format (for example, input file is already a new format file). A warning message is issued in this case, but conversion continues. EXIT STATUS
Success. An error occurred. EXAMPLES
To convert an old format accounting file to the new format: wtmpconvert /var/adm/wtmp.prev Upon completion of this command, /var/adm/wtmp.prev will have been converted to the new format. The original /var/adm/wtmp.prev is renamed to /var/adm/wtmp.prev.orig. To convert a wtmp file in new format to the old format: wtmpconvert -r /var/adm/wtmp /var/adm/wtmp.old FILES
Accounting header files that define the format for the login database file. The active login/logoff database files. SEE ALSO
Commands: acct(8), acctcon(8), acctmerg(8), date(1), runacct(8) Functions: getutent(3) Files: utmp(4), wtmp(4) wtmpconvert(8)
Man Page

14 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

picture

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)
Discussion started by: Nisha
44 Replies

2. Programming

semaphore access speed

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)
Discussion started by: migurus
46 Replies

3. Web Development

Apache Problems.

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)
Discussion started by: darkphaux
45 Replies

4. Shell Programming and Scripting

retreiving and assigning values and manipulating string in a for loop

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)
Discussion started by: Anteus
41 Replies

5. What is on Your Mind?

Do You Use Your Mobile Phone to Access the Internet?

How much do you use your mobile phone to access the Internet? Vote and Discuss!! (46 Replies)
Discussion started by: Neo
46 Replies

6. Shell Programming and Scripting

Include white spaces while using CUT command

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)
Discussion started by: Sekar1
48 Replies

7. AIX

ORACLE Database running slow on AIX ( nmon / topas )

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)
Discussion started by: filosophizer
43 Replies

8. Shell Programming and Scripting

Help regarding shell script

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)
Discussion started by: mike12
45 Replies

9. Shell Programming and Scripting

Help in extracting fields from a file

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

Bits - The Unix and Linux Forums (Experimental) Virtual Currency

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)
Discussion started by: candlejack
76 Replies

11. Shell Programming and Scripting

Extract sequences of bytes from binary for differents blocks

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)
Discussion started by: Ophiuchus
59 Replies

12. UNIX for Beginners Questions & Answers

Parsing a column of text file - best practices

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)
Discussion started by: SIMMS7400
50 Replies

13. What is on Your Mind?

PubNub Live Chat Beta Testing

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)
Discussion started by: Neo
48 Replies

14. Open Source

What editor does everyone use?

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)
Discussion started by: yongho
409 Replies