Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-priv way to collect job stats under Intel?



On 8/2/06 at 12:26 AM, email@hidden wrote:

>> We don't require any authorization dialogs anywhere (drag across install)
>> and some of our customers are in some, ah, slighly paranoid environments
>> where a third party SUID-root tool would put us at a disadvantage because
>> they'd have to spend resources auditing the tool (and our competitors don't
>> have any such tools to audit). We may have to end up shelling out to ps on 
>>intel boxes...
>
>So, can you not use NSTask or similar mechanism to run ps directly?

By "shelling out" we'd be using popen(/bin/ps ....). This isn't a Cocoa app, so NSTask is out, and
from my limited understanding it appears to me an NSTask() approach would create a new process every
time ps was run as well. I was hoping we could keep from creating new processes just to check on an
existing one. :-)


Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Non-priv way to collect job stats under Intel? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.