Re: Can't get "pmset" to work
Re: Can't get "pmset" to work
- Subject: Re: Can't get "pmset" to work
- From: Kyle Sluder <email@hidden>
- Date: Tue, 20 Jul 2010 12:49:35 -0700
On Tue, Jul 20, 2010 at 1:34 AM, Luca C. <email@hidden> wrote:
> Hi everyone,
> I'm having a strange problem. I create the right authorization to get the
> privileges I want, then I just make a simple call to pmset.
Don't use AEWP to run arbitrary programs. See the AEWP documentation
for the correct approach:
http://developer.apple.com/mac/library/documentation/Security/Reference/authorization_ref/Reference/reference.html#//apple_ref/c/func/AuthorizationExecuteWithPrivileges
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden