Can't get "pmset" to work
Can't get "pmset" to work
- Subject: Can't get "pmset" to work
- From: "Luca C." <email@hidden>
- Date: Tue, 20 Jul 2010 10:34:10 +0200
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.
This is the snippet
char *opts[] = { "schedule", "sleep", "\"07/20/10 14:45:00\"", NULL };
OSStatus result = AuthorizationExecuteWithPrivileges(
auth,
"/usr/bin/pmset",
kAuthorizationFlagDefaults,
opts,
NULL);
But this does not work on 10.6. Why? The authorization is ok, as I tested it
with other commands and works fine. The syntax for pmset is right also...
Thanks in advance,
--
Luca C.
_______________________________________________
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