Re: Is this program open?
Re: Is this program open?
- Subject: Re: Is this program open?
- From: John Stiles <email@hidden>
- Date: Thu, 13 Apr 2006 11:53:08 -0700
The alternative is the Carbon Process Manager, which I assume
(untested as of yet) does not suffer from this limitation.
Trust me, I will try it and let you know how it goes.
Either way, though, it seems like the best approach given the
alternatives, so even if it doesn't work, that's probably how it will
go.
At any rate, once again—once you get into the realm of links, we are
discussing end-user sabotage, which I don't care about :) Let's
assume, for the purposes of this discussion, that the end user will
not go out of their way to break the process once it starts to run.
If they do, it's really their loss :)
On Apr 13, 2006, at 11:47 AM, Ondra Cada wrote:
John,
On 13.4.2006, at 20:37, John Stiles wrote:
I guess that shows one pretty significant weakness of the "ps"
approach. The launched path may not equal the current path.
I fear you still don't get the trick: the launched path is the only
information you get, and it might be completely virtual. For
example, try this:
161 /tmp> su admin
Password:
1 /tmp> ln /usr/bin/dc /Applications/Feender.app
2 /tmp> /Applications/Feender.app&
[1] 29025
3 /tmp>
[1] + suspended (tty input) /Applications/Feender.app
3 /tmp> rm /Applications/Feender.app
override rwxr-xr-x root/wheel for /Applications/Feender.app? y
4 /tmp> ps -auxww | fgrep '/Applications/F'
ocs 2920 0.0 -0.5 250652 10812 ?? S Sun03PM
7:14.48 /Applications/FrontBaseManager.app/Contents/MacOS/
FrontBaseManager -psn_0_19529729
admin 29025 0.0 -0.0 27536 728 p2 SN 8:46PM
0:00.01 /Applications/Feender.app
admin 29031 0.0 -0.0 27384 788 p2 S+ 8:47PM
0:00.01 fgrep /Applications/F
5 /tmp>
---
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