Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

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.

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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