tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Darryl Cook <dlc () cs ! appstate ! edu>
To: tru64-unix-managers
Subject: SUMMARY: Lastcomm command
Date: Fri, 17 Nov 2000 17:17:51 +0000	[thread overview]
Message-ID: <97449463411892.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~2000-11-17 17:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox