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
WCAT(1) User Commands WCAT(1)NAME
wcat - printout wtmp entries
SYNOPSIS
wcat [-w wtmp|-] [-adX[3|4]] [-s start] [-e end] [-b H[:M[:S]]] [--help] [--version]
SYNOPSIS
Wcat provides an easy way to recover trimmed information from wtmp binary files. This tool can be useful for scripts that need only partial
information from them.
Notice that wcat output is binary wtmp entries so if this information is printed out to a terminal or screen it might mess it up. A better
use of wcat would be: wcat | rawtmp -w -
OPTIONS -w wtmp|-
Read alternate wtmp file.
-X[3] Read tacacs 3.x wtmp format.
-X4 Read tacacs 4.0 wtmp format.
-d Output time in MMM DD HH:MM:SS date format.
-a Print contents of ut_addr (if it exists) instead of ut_host.
-s start
Display accounting info from `start'.
-e end Display accounting info up to `end'.
-b H:M:S
Show accounting info from the last few hours/minutes/seconds.
--help Print this help message.
--version
Print the version of rawtmp.
SEE ALSO sac(8), ac(1), last(1), rawtmp(1), wtmp(5), netdate(8L)FILES
/var/log/wtmp login database
/usr/adm/radacct/.../detail Radius accounting logs
AUTHOR
The upstream author of wcat is Steve Baker (ice@mama.indstate.edu)
This manpage was written by Javier Fernandez-Sanguino based on help2man for the Debian GNU/Linux distribution (but can be used by others).
wcat v1.0 (c) 2001 by Steve Baker January 2003 WCAT(1)
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)