• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get "pmset" to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get "pmset" to work


  • Subject: Re: Can't get "pmset" to work
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Tue, 20 Jul 2010 14:50:41 -0500

On Tue, Jul 20, 2010 at 3:34 AM, Luca C. <email@hidden> wrote:
> 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...

What is the return code?
_______________________________________________

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

References: 
 >Can't get "pmset" to work (From: "Luca C." <email@hidden>)

  • Prev by Date: Re: Can't get "pmset" to work
  • Next by Date: Re: case-insensitive but case-ordered sort
  • Previous by thread: Re: Can't get "pmset" to work
  • Next by thread: mach_msg timing out + QuickTime
  • Index(es):
    • Date
    • Thread