SUMMARY: Lastcomm command

From: Darryl Cook <dlc_at_cs.appstate.edu>
Date: Fri, 17 Nov 2000 12:17:51 -0500

Thanks to Jerome Berkman, Tom Blinn and Paul Sand for their quick
responses. Original question is posted below.

Paul suggested writing my own c code which really wasnt too bad and even
sent a sample script which i modified fairly easily. You can find the
record layout in /usr/include/sys/acct.h

Tom responded that I indeed was correct that you basically cannot ask
lastcomm to look at another file other than the pacct file. Its built
into the script.

Jerome suggested that I use acctcom which did do what I wanted fairly
easily as well.


thanks for the quick responses.....

Jerome M Berkman wrote:
>
> Use acctcom instead. It is faster, has many more option including
> the ability to look at other files.
>
> - Jerry Berkman, UC Berkeley
>
> On Fri, 17 Nov 2000, Darryl Cook wrote:
>
> > Is there any way to tell lastcomm to look at a file other than the pacct
> > file? I would like to look through some of the older files which have
> > been rotated out. Our system rotates in a new pacct file every 2
> > weeks. I have looked through the man pages and there doesnt seem to be
> > an easy way to do this. We are using DU4.0f on a Alpha 2100A.
> > --
> > Darryl Cook
> > Systems Programmer
> > Computer Science Dept
> > Appalachian State University
> > Boone, NC 28608
> >
> > 828-262-2296
> > dlc_at_cs.appstate.edu
> >

-- 
Darryl Cook
Systems Programmer
Computer Science Dept
Appalachian State University
Boone, NC 28608
828-262-2296
dlc_at_cs.appstate.edu
Received on Fri Nov 17 2000 - 17:20:09 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT