Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Getting the CPU & (Virtual) Memory of a process


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

    Thank you.

  2. #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