views:

226

answers:

1

Is there a cross-platform way to list the processes running on one's computer through a python script? For Unix based system "ps -ef" works, but I am new to Python and don't know a way to write something that would work across any platform.

Thanks!

+2  A: 

Python itself doesn't offer any such functionality. On PyPI, there is the enumprocess package, which supposedly helps; there is also the PSI package. I haven't personally used any of them.

Martin v. Löwis