Re: How do I find out if a process is running if I have the process Name?
Re: How do I find out if a process is running if I have the process Name?
- Subject: Re: How do I find out if a process is running if I have the process Name?
- From: Ondra Cada <email@hidden>
- Date: Thu, 18 May 2006 20:15:00 +0200
John,
On 18.5.2006, at 19:16, John Stiles wrote:
You can also use Mach APIs if you have root access. I don't
remember many of the details here. I believe Activity Monitor works
this way; it launches a tool with the "run with root privs" bit set.
If going that far, probably launching ps and parsing its output would
prove easier. Unless you need something which ps could not offer, and
that's not too probable.
AFAIK none of these solutions work quite right if you move or
rename the app after it has been launched. You will get back the
path that it was originally launched from. This is a sad downgrade
from OS 9 but I guess it is a hard problem to solve.
It's not downgrade, it's upgrade--since it effectively means you can
do whatever you want with the program file (even deleting it) without
breaking the proces which was launched upon it. That's more
flexibility, and thence definitely a good thing.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden