ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
Re: [Tutor] Generalising system processes
by R. Alan Monroe other posts by this author
Sep 29 2005 6:06AM messages near this date
[Tutor] Generalising system processes | [Tutor] New-style classes
>  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/createtoolhelp
32snapshot.asp

I have not tried this in Python, though.

Alan

_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Peter Jessop
R. Alan Monroe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved