Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to collect some stats on how much time is spent 'waiting' for certain fairly short running tasks so I can justify purchase of some automated tools. I've written bash function wrappers around a few common tasks I do using the GNU time utility along the lines of this:

function something() {
  /usr/bin/time -o ~/wastedtime.log -a $path_to_original "$@"

I would now like to extend this a little further to a few more scripts & if possible catch the timings for other users on the same machine. I'm using a bash to syslog patch already.

What utilities exist to automatically record the execution times of commands & their arguments?

share|improve this question

migrated from Feb 10 '10 at 7:40

This question came from our site for computer enthusiasts and power users.

up vote 3 down vote accepted

Sounds like you want the GNU Accounting Utilities, specifically the "sa" command.

share|improve this answer
Looks great, thanks! – Mark McDonald Feb 10 '10 at 2:00

Your Answer


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.