• 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: sudo shutdown -c now
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sudo shutdown -c now


  • Subject: Re: sudo shutdown -c now
  • From: Lorenzo <email@hidden>
  • Date: Tue, 07 Mar 2006 16:15:50 +0100

HI, thanks.
I am going to try both

    osascript -e 'tell app "System Events" to shut down'
and
    SendAppleEventToSystemProcess(kAEShutDown);

Best Regards
--
Lorenzo
email: email@hidden

> From: Greg Herlihy <email@hidden>
> Date: Tue, 07 Mar 2006 01:28:28 -0800
> To: Lorenzo <email@hidden>, email@hidden
> Subject: Re: sudo shutdown -c now
>
> Try this shell command:
>
>   osascript -e 'tell app "System Events" to shut down'
>
> Greg
>
> On 3/7/06 1:02 AM, "Lorenzo" <email@hidden> wrote:
>
>> Hi,
>> I would like to turn off the machine when a given event occurs.
>> I tried:
>>
>>     shutdown -c now
>>
>> and it works only with superuser, e.g.
>>
>>     sudo shutdown -c now
>>
>> How can I shutdown the machine in case the user is not a superuser?
>>
>>
>>
>> Best Regards
>
>

 _______________________________________________
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

References: 
 >Re: sudo shutdown -c now (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Add and Edit a table row
  • Next by Date: Re: quit on restart even with sheet?
  • Previous by thread: Re: sudo shutdown -c now
  • Next by thread: Re: sudo shutdown -c now
  • Index(es):
    • Date
    • Thread