2

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

SamB
  • 9,039
  • 5
  • 49
  • 56
Dungeon Hunter
  • 19,827
  • 13
  • 59
  • 82

2 Answers2

3

You could use psutil. Psutil provides information on running processes and system utilization.

joaquin
  • 82,968
  • 29
  • 138
  • 152
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.

Community
  • 1
  • 1
megazord
  • 3,210
  • 3
  • 23
  • 31