1836611 Members
3793 Online
110102 Solutions
New Discussion

lastcomm

 
SOLVED
Go to solution
Umapathy S
Honored Contributor

lastcomm

hi
how to setup the lastcomm command, rather how to setup accounting in my machine which is hp10.2. any detailed pointers, docs.
Thanks for the info

regards
Umapathy S
Arise Awake and Stop NOT till the goal is Reached!
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor

Re: lastcomm

Hi,

To start account, execute runacct eg.:

# nohup runacct 2> /var/adm/acct/acct.log &

To read accounting files, use acctcom.

# acctcom /var/adm/acct/acct.log

man 1m acct for more information.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor
Solution

Re: lastcomm

Hi,

# acctcom /var/adm/pacct

This will read the process accounting records.

Hope this helps. Regards.

Steven Sim Kok Leong
Umapathy S
Honored Contributor

Re: lastcomm

Thanks Steven for the response. I need to read a lot on how to use all the available commands/scripts effectively. man pages for *acct* are really clumsy.

any other docs ?

regards
Umapathy
Arise Awake and Stop NOT till the goal is Reached!