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

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 superuser.com Feb 10 '10 at 7:40

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

1 Answer 1

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

 
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.