• 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: Equivalent to "ps aux" in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent to "ps aux" in Cocoa?


  • Subject: Re: Equivalent to "ps aux" in Cocoa?
  • From: Andrew <email@hidden>
  • Date: Thu, 2 Jan 2003 19:54:53 +1100 (EST)

On Thu, 2 Jan 2003, Cameron Hayne wrote:

> On 31/12/02 12:59 pm, "Arthur VIGAN" <email@hidden> wrote:
> > I would like to known if there is something to get the pid of a process
> > in Cocoa, ie an equivalent to "ps aux | grep myProcessName | awk
> > '{print $2}'"?
>
> Use the UNIX system call 'getpid()'.
> % man 2 getpid

That will only tell you the PId of your process. You will probably have to
use kvm_getprocs and kvm_getargv.

Andrew
_______________________________________________
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.

  • Follow-Ups:
    • Re: Equivalent to "ps aux" in Cocoa?
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: Equivalent to "ps aux" in Cocoa? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Icon in NSOutlineView
  • Next by Date: Re: [basic] retain an NSTextView object and update a window
  • Previous by thread: Re: Equivalent to "ps aux" in Cocoa?
  • Next by thread: Re: Equivalent to "ps aux" in Cocoa?
  • Index(es):
    • Date
    • Thread