[Tutor] Generalising system processes

2005-09-29 Thread Peter Jessop
Good day.

Is there a library in Python that generalises the display of processes
in the system.
I am looking for a consistent way of seeing processess, (a python
equivalent of ps(unix) or tasklist (windows).

I have googled but the only suggestion I have found was to install ps
on Windows.

Thanks

Peter Jessop
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Generalising system processes

2005-09-29 Thread R. Alan Monroe
 Is there a library in Python that generalises the display of processes
 in the system.
 I am looking for a consistent way of seeing processess, (a python
 equivalent of ps(unix) or tasklist (windows).

 I have googled but the only suggestion I have found was to install ps
 on Windows.

On Windows, you can probably use ctypes module to call
CreateToolhelp32Snapshot()

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/createtoolhelp32snapshot.asp

I have not tried this in Python, though.

Alan

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor