1

Is there a way to log processes that run over a period of time so that I end up with a tidy list of processes that have run over the the last hour or so?

top is great of realtime monitoring but i'm looking for a log of what new processes show up over a time period.

2 Answers 2

2

First install and enable process accounting. On a Debian-based Linux:

apt-get install acct

Then you can use lastcomm.

3
  • Haven't we met before? : ) Jan 4, 2012 at 17:51
  • Beware, you'll be using a chunk of disk space to do this.
    – mdpc
    Jan 4, 2012 at 18:02
  • Sure have. Thanks - that is the answer i'm looking for alright.
    – evolution
    Jan 4, 2012 at 18:08
0

sar might do this as well. Install it, configure it and run it as daemon.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .