site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 13, 2005, at 7:09 PM, Eric Long wrote: Hi, I have a program that I want to look at the process list and find a particular process by name. The process I am looking for runs as root. Thanks, Cheers.....Peter _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... If multiple instances of the process are running in separate log-ins, I see the other instances. How can I determine if a particular process running as root is running from the current user's log-in session? Eric Hi Eric, I forget the exact details, but it's something to do with getting the group-leader pid I think. The log-in session will be a group leader. You need to find which one is at the "console" (not THAT console) and which ones are remote logins. Start by having a look at man page for "ps" - I think that will explain most of it. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Lovell