Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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.

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    15
    Thanks it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...