Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time taken by process after it's completed

Status
Not open for further replies.

spookie

Programmer
May 30, 2001
655
IN
Hi,

Is there any way to know how much time a process, with say PID 123, has taken to complete after it gets completed. i.e.ps -ef does not show up the process.

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Thanks for the response KenCunningham, but i have never used truss.Can you shed some light on how to use it. Also i don't have proc filesystem mounted on my server. Will i be able to use truss then.

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
If you invoke it with "time", then it gives all that info.

If you want it after the fact, you might have to turn accounting on.
 
Another vote for the "[tt]time[/tt]" command here. You need to add it to the front of the command, but it will give a report of elapsed, system CPU, and process CPU time used. See the man page. Extremely easy to use.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top