Results 1 to 3 of 3
Hi
My working enviorment is CENTOS5.
I have created a c programme dameon application, how can i find how long this application is being running. without stopping the application.
linux ...
- 07-09-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
how to find user application uptime
Hi
My working enviorment is CENTOS5.
I have created a c programme dameon application, how can i find how long this application is being running. without stopping the application.
linux uptiime function tell the linux system uptime. Is there any command some thing like this through which I can find the user application uptime.
Or any workaround?
Ritesh
- 07-09-2008 #2
If you know the process ID (PID) of the daemon, you can do this at the command line:
Code:ps -p the_process_id -o "%t"
--
Bill
Old age and treachery will overcome youth and skill.
- 07-09-2008 #3Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
Thanks it works.


Reply With Quote