Re: sudo shutdown -c now
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