Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, Is there any program which gets the CPU and memory of a process ? Thank you....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Getting the CPU & (Virtual) Memory of a process


    Hello,

    Is there any program which gets the CPU and memory of a process ?

    Thank you.

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Solved in php.

    PHP Code:
    "top -n 1 -b | grep "$pid ."| awk '{print $"$getInfo ."}'" 

Posting Permissions

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