#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    Script to fetch CPU, Memory Usage per process


    Hi All,

    Can you pass me script to fetch CPU, Memory Usage per process in the system.

    Thanks,
    Ishwar
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,446
    Rep Power
    1751
    A bit more detail of the actual need would be good - is this for every process, including system ones or just for a particular user? Is it uasge as at the moment the script is run or do you need it tracked historically? Will it be run as the root user (either directly or via sudo), or by another, standard, user?
    The version of Unix you are using may also be of relevance.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo