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.

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

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

apt-get install acct

Then you can use lastcomm.

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

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.