• 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: ProcessPath by using PID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ProcessPath by using PID


  • Subject: Re: ProcessPath by using PID
  • From: Aram Greenman <email@hidden>
  • Date: Sun, 14 Mar 2004 13:43:57 -0800

I have a PID already and using that PID I want to find the Path of that
running process.
I have seen the examples with sysctl using KERN_PROC and
KERN_PROC_ALL,
These are fine but as far as I can tell don't give me the path of the
PID,

There is no reliable way to do this, but sysctl will at least give you the executable path most of the time. You can check out the code to AGProcess <http://sf.net/projects/agkit> for an example, the method you want to look at is -doProcargs.

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


  • Prev by Date: Re: parsing files and saving to other formats
  • Next by Date: Re: storing default preferences
  • Previous by thread: ProcessPath by using PID
  • Next by thread: What's most common cause of SIGSEGV and SIGBUS
  • Index(es):
    • Date
    • Thread