From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97449463411892.tru64-unix-managers.marc@archive.invalid> From: Darryl Cook Date: Fri, 17 Nov 2000 17:17:51 +0000 To: tru64-unix-managers Subject: SUMMARY: Lastcomm command X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97449463411892 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@cs.appstate.edu > > -- Darryl Cook Systems Programmer Computer Science Dept Appalachian State University Boone, NC 28608 828-262-2296 dlc@cs.appstate.edu