Checking processes running under Windows

João Rodrigues anaryin at gmail.com
Thu Mar 27 10:31:41 EDT 2008


Hello all! I'm trying to write a script that needs to check which processes
are running under Windows (XP Pro, Home, whatever). The method I'm using is:

>>> process_list = os.popen('TASKLIST').read()

However, XP Home doesn't have the tasklist.exe tool so, this is kind of
useless in that OS. Do you have any other methods I can use for this?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080327/4f19087d/attachment.html>


More information about the Python-list mailing list