Re: Getting User and Process Information
Re: Getting User and Process Information
- Subject: Re: Getting User and Process Information
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 29 Oct 2005 17:35:53 +0100
On 28/10/05, John Timmer <email@hidden> wrote:
> > I am writing a program that returns user and process information. It
> > must list all processes and the users that have executed those
> > processes. I want the app to be available for universal binary. Is
> > there anyone who can help me with this?
>
> You could always just execute ps or top using NSTask.
Why would you want to do that?
<http://developer.apple.com/qa/qa2001/qa1123.html>
There's also <http://developer.apple.com/samplecode/PIDFromBSDProcessName/PIDFromBSDProcessName.html>
which also walks the BSD process table.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden