• 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: Greg Herlihy <email@hidden>
  • Date: Tue, 07 Mar 2006 01:28:28 -0800
  • Thread-topic: 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

  • Follow-Ups:
    • Re: sudo shutdown -c now
      • From: Lorenzo <email@hidden>
References: 
 >sudo shutdown -c now (From: Lorenzo <email@hidden>)

  • Prev by Date: sudo shutdown -c now
  • Next by Date: drag and drop
  • Previous by thread: sudo shutdown -c now
  • Next by thread: Re: sudo shutdown -c now
  • Index(es):
    • Date
    • Thread