How to get process info from python

Discussion in 'Python' started by Gardner Pomper, Jun 7, 2004.

  1. Hi,

    I have another newbie question for the list. I have some python scripts that
    need to look at the list of processes running on the system. I am currently
    just spawning a 'ps' and parsing the output. Are there any existing python
    modules to do this? It would be particularly handy to have it be more
    platform independent than my solution, which works only on AIX.

    - Gardner
     
    Gardner Pomper, Jun 7, 2004
    #1
    1. Advertising

  2. Gardner Pomper

    vs Guest

    "Gardner Pomper" <> wrote in message news:<>...
    > Hi,
    >
    > I have another newbie question for the list. I have some python scripts that
    > need to look at the list of processes running on the system. I am currently
    > just spawning a 'ps' and parsing the output. Are there any existing python
    > modules to do this? It would be particularly handy to have it be more
    > platform independent than my solution, which works only on AIX.
    >
    > - Gardner



    Try the os,sys modules that comes with python. They help u in
    interfacing with the OS directly.
    - vinodh
     
    vs, Jun 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vasanth
    Replies:
    0
    Views:
    561
    Vasanth
    Jun 28, 2004
  2. Gardner Pomper

    RE: How to get process info from python

    Gardner Pomper, Jun 7, 2004, in forum: Python
    Replies:
    2
    Views:
    1,316
    Heather Coppersmith
    Jun 8, 2004
  3. Gardner Pomper

    RE: How to get process info from python

    Gardner Pomper, Jun 8, 2004, in forum: Python
    Replies:
    1
    Views:
    629
    Nick Vargish
    Jun 8, 2004
  4. Gardner Pomper

    RE: How to get process info from python

    Gardner Pomper, Jun 9, 2004, in forum: Python
    Replies:
    2
    Views:
    1,250
    Jean Brouwers
    Jun 12, 2004
  5. ilya

    get CPU info, RAM info

    ilya, Apr 8, 2010, in forum: Java
    Replies:
    43
    Views:
    6,013
    Mike Schilling
    Apr 19, 2010
Loading...

Share This Page