• 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: Cameron Hayne <email@hidden>
  • Date: Thu, 02 Jan 2003 00:34:03 -0500

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

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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: Andrew <email@hidden>
  • Prev by Date: Re: [basic] retain an NSTextView object and update a window
  • Next by Date: Re: select Button
  • Previous by thread: Re: Help with Timer
  • Next by thread: Re: Equivalent to "ps aux" in Cocoa?
  • Index(es):
    • Date
    • Thread