On Thu, Jan 12, 2006 at 01:09:52PM -0500, Michael Steinfeld wrote:
> A brief description of what I am wanting to do...
>
> I want to write a script that records PID's start and stop time
> I want the script to record an instance of an applications life while
> incrementing the applications record db... I want to be able to keep
> track of how often, how long running, and how frequent a command is
> executed and I am thinking I need to do that by monitoring pid's.
>
> can someone give me a list of manpages that would be helpful for this.
>
> Also, is there already a utility for this?
$ whatis acct
acct (2) - enable or disable process accounting
acct (5) - execution accounting file
It will do most of what you want. See acct(5) first, and follow the
references.
Joachim