• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting process status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Getting process status (From: Aram Greenman <email@hidden>)

  • Prev by Date: Re: Big Nerd Ranch Experience
  • Next by Date: doubling up a NSCell for an NSTableColumn
  • Previous by thread: Re: Getting process status
  • Next by thread: NSString initWithCharactersNoCopy
  • Index(es):
    • Date
    • Thread