Re: Getting process status
Re: Getting process status
- Subject: Re: Getting process status
- From: Prachi Gauriar <email@hidden>
- Date: Sat, 12 Jun 2004 16:32:47 -0500
On Jun 12, 2004, at 12:32 PM, Aram Greenman wrote:
Is there a Cocoa way to get the status of all running processes, like
the 'ps' command gives on the command line?
If not, is there a system call that gives this?
If not, has anyone written a class that wraps 'ps' to achieve this?
Check out my AGProcess class <http://sf.net/projects/agkit/>. Note
that to get the status of *all* running processes you need superuser
privileges, otherwise you can only get the status of your own
processes.
You could always just look at the source code for ps or top that's used
in Darwin.
Just to save you some time, you can find ps in adv_cmds-64/ps.tproj,
and top is found in top-9.
-Prachi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.