I want a list of running processes on a Mac, similar to what you get from "ps -ea"
I tried os.popen ('ps -ea') , but this only displays a small subset of processes supposedly owned by the shell.
Other options I've tried
'sh -c /bin/ps -ea' 'bash -c /bin/ps -ea' 'csh -c /bin/ps -ea' Running as root via sudo data = subprocess.Popen(['ps','ea'], stdout=subprocess.PIPE).stdout.readlines()
What other methods exist that can give me a complete list of process information?
This is for a python wx application to monitor certain processes and detect when they die.
python process macos
David Sykes Nov 04 '09 at 13:52 2009-11-04 13:52
source share