I have to do some task whenever some specific applications were launched. Is there any way to list all the processes running in an operating system or detect whenever a new process is created in operating system
Asked
Active
Viewed 606 times
2 Answers
3
You could use psutil. Psutil provides information on running processes and system utilization.

joaquin
- 82,968
- 29
- 138
- 152
-
1I'm not sure what you mean. Where is that traceback coming from ? – joaquin Oct 08 '11 at 16:30
-
That means he's running jython and psutil doesn't have support for it. – Giampaolo Rodolà Nov 18 '11 at 11:06
3
Yeah, there is a bit of stuff in the standard Python library that Jython doesn't implement probably because it's platform dependent and too much work for the small Jython community to implement. Try looking for a Java solution, it's trivial to invoke Java code from Jython.