Re: Getting process table info from within a Cocoa app

2008-07-28 Thread Sumner Trammell
Thanks guys. I thought I'd post my solution. The difference between my solution and the examples on the net that I was able to find is that I already know the pid -- I just want to see if that pid is still running, if it's running as root, and if it has a certain name. Although the Cocoa content i

Re: Getting process table info from within a Cocoa app

2008-07-26 Thread Ken Thomases
On Jul 26, 2008, at 12:58 AM, Sumner Trammell wrote: Hi. A daemon process is running independently of my Cocoa app. Given a pid file of the daemon process in a known location, say /var/run/ somedaemon.pid, I would like my Cocoa app to read that file and check the process table to see if the

Re: Getting process table info from within a Cocoa app

2008-07-25 Thread Chris Hanson
On Jul 25, 2008, at 10:58 PM, Sumner Trammell wrote: Hi. A daemon process is running independently of my Cocoa app. Given a pid file of the daemon process in a known location, say /var/run/ somedaemon.pid, I would like my Cocoa app to read that file and check the process table to see if the

Re: Getting process table info from within a Cocoa app

2008-07-25 Thread Andrew Farmer
On 25 Jul 08, at 22:58, Sumner Trammell wrote: Hi. A daemon process is running independently of my Cocoa app. Given a pid file of the daemon process in a known location, say /var/run/ somedaemon.pid, I would like my Cocoa app to read that file and check the process table to see if the daemon

Getting process table info from within a Cocoa app

2008-07-25 Thread Sumner Trammell
Hi. A daemon process is running independently of my Cocoa app. Given a pid file of the daemon process in a known location, say /var/run/somedaemon.pid, I would like my Cocoa app to read that file and check the process table to see if the daemon is actually running. If the daemon IS running, I want