Re: get active processes in python

看板FB_hackers作者時間18年前 (2007/07/24 10:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
[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 like to fire this regularly, eg every second This shouldn't be a problem. Most GUI toolkits offer a way of registering a callback that will be invoked periodically. Regards, Koshy <jkoshy@freebsd.org> _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16fMeQ00 (FB_hackers)
文章代碼(AID): #16fMeQ00 (FB_hackers)