[Tutor] Generalising system processes
R. Alan Monroe
amonroe at columbus.rr.com
Thu Sep 29 15:02:12 CEST 2005
> 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
More information about the Tutor
mailing list