How to get process info from python

G

Gardner Pomper

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
 
V

vs

Gardner Pomper said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top