Re: Processes
Re: Processes
- Subject: Re: Processes
- From: Peter Lovell <email@hidden>
- Date: Wed, 13 Apr 2005 19:19:04 -0400
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.
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?
Thanks,
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.
Cheers.....Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Processes (From: Eric Long <email@hidden>) |