Re: get active processes in python

2007-07-12 Thread Joseph Koshy
[Trimming soc-admins@ from the CC list] mp> do you recommend a method to get active processes in a python script, mp> as with "ps" or "top" in order to put the result into a list ? (python mp> package, shell call...) One option would be to wrap "kvm_getprocs(3)" and use that. mp> PS: I would li

get active processes in python

2007-07-12 Thread Mathieu Prevot
Hello, do you recommend a method to get active processes in a python script, as with "ps" or "top" in order to put the result into a list ? (python package, shell call...) Mathieu ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mail

Re: get active processes in python

2007-07-12 Thread Mathieu Prevot
2007/7/12, Mathieu Prevot <[EMAIL PROTECTED]>: Hello, do you recommend a method to get active processes in a python script, as with "ps" or "top" in order to put the result into a list ? (python package, shell call...) Mathieu PS: I would like to fire this regularly, eg every second ___