The conversation on this page has been archived and is no longer active.

OS X: scheduled shutdown?

Message #1 - Posted 2003/08/29 - Clive Sweeting

Ok. Anyone used a reliable scheduled shutdown program in OS X? Prefereably one that runs imvisible, not as an open application. A Daemon if that's the term, or a crom job type thingy....

Message #2 - Posted 2003/08/29 - Martin

Previously, Clive Sweeting wrote:

Ok. Anyone used a reliable scheduled shutdown program in OS X? Prefereably one that runs imvisible, not as an open application. A Daemon if that's the term, or a crom job type thingy....

You can't get much more reliable methods of shutting the machine down than typing the following in Terminal

% sudo shutdown

You can also schedule the shutdown for 30 minutes later by typing

% sudo shutdown +30

or use yymmddhhmm notation for a specified year, date and time.

If you want to make it a regular thing you could use *cron* (use CronniX - it makes the whole process very simple):

30 3 * * 1,2,3,4,5 root shutdown

would shut the mac down at 3.30 am monday to friday

Martin

Message #3 - Posted 2003/08/29 - Stroller

Clive Sweeting <clive@sweet-apple.co.uk> wrote in message news:<BB7512C3.4557D%clive@sweet-apple.co.uk>...

Ok. Anyone used a reliable scheduled shutdown program in OS X? Prefereably one that runs imvisible, not as an open application. A Daemon if that's the term, or a crom job type thingy....

I've found some apps may interrupt the usual Mac shutdown process - iTerm won't close unless you tell it you're sure you want to. I also seem to recall you don't like `shutdown`, and that you've stated in the past that it might not handle Mac apps properly. It is tremendously effective, however, so Apple should fix that, really IMO - what's the point of a shutdown command if it's not safe? So do let us know what you decide.

Stroller.

Message #4 - Posted 2003/08/30 - Clive Sweeting

On 29/8/03 23:50, in article biolcj$4eu$1$8302bc10@news.demon.co.uk, Martin wrote:

Ok. Anyone used a reliable scheduled shutdown program in OS X? Prefereably one that runs imvisible, not as an open application. A Daemon if that's the term, or a crom job type thingy....

You can't get much more reliable methods of shutting the machine down than typing the following in Terminal

% sudo shutdown

Oh go on, what's wrong with the Shutdown command? <grin>

You can also schedule the shutdown for 30 minutes later by typing

% sudo shutdown +30

or use yymmddhhmm notation for a specified year, date and time.

If you want to make it a regular thing you could use *cron* (use CronniX - it makes the whole process very simple):

30 3 * * 1,2,3,4,5 root shutdown

would shut the mac down at 3.30 am monday to friday

Nice. What happens if you're working at the time? What about open documents?

Message #5 - Posted 2003/08/31 - Clive Sweeting

On 30/8/03 23:20, in article bir7vl$bhr$1$8300dec7@news.demon.co.uk, Martin wrote:

Oh go on, what's wrong with the Shutdown command? <grin>

Why would you want to shut down your Mac?

I don't, I have a laptop so it snoozes. But my desktop users see little point in adding to the CO2 burden by leaving a computer on doing nothing. Well they do after I've pointed it out.

30 3 * * 1,2,3,4,5 root shutdown

would shut the mac down at 3.30 am monday to friday

Nice. What happens if you're working at the time? What about open documents?

It's 3.30 am, why are you still working :-)

Backup might be running, downloads, etc. Or more likely people just failed to close documents .

I guess that open documents get closed without saving. The shutdown process does issue warnings - starting up to 10 hours before a scheduled shutdown but they aren't shown in the Finder.

Worth knowing

Message #6 - Posted 2003/08/31 - slavins

Previously, Clive Sweeting wrote:

Anyone used a reliable scheduled shutdown program in OS X?

The 'shutdown' command should work. 'man shutdown' for more details.

Message #7 - Posted 2003/09/01 - Chris Ridd

On 31/8/03 10:52 pm, in article BB782C9F966840DA@10.0.1.2, Simon Slavin wrote:

Previously, Clive Sweeting wrote:

Anyone used a reliable scheduled shutdown program in OS X?

The 'shutdown' command should work. 'man shutdown' for more details.

It would, but Clive actually wanted an "unreliable" shutdown program, ie one that would fail if you were still working :-)

Cheers,

Chris

Message #8 - Posted 2003/09/03 - Clive Sweeting

On 2/9/03 23:27, in article BB7AD7F89668325D3C@0.0.0.0, Simon Slavin wrote:

But my desktop users see little
point in adding to the CO2 burden by leaving a computer on doing nothing.

Don't turn it off, just put it to sleep.

Errr. Yes, but the power in the building goes off at a certain time. It needs to shut off, not sleep. Making it sleep using Energy Saver s easy.

Message #9 - Posted 2003/09/03 - D.M. Procida

<slavins wrote:

Don't turn it off, just put it to sleep.

'off': 3 watts. (precise figure depends on model)

It takes 3 Watts to keep the on-board cloack ticking and to monitor the power button? Wow.

Daniele

Apple Juice Ltd
Chapter Arts Centre
Market Road www.apple-juice.co.uk Cardiff CF5 1QE 029 2019 0140

Message #10 - Posted 2003/09/04 - slavins

Previously, Chris Ridd wrote:

<slavins@hearsay.demon.co.uk wrote:

The 'shutdown' command should work. 'man shutdown' for more details.

It would, but Clive actually wanted an "unreliable" shutdown program,

Ah. In that case, he should use Windows.

ie one
that would fail if you were still working :-)

Oh, you need take no special measures to have Windows shut down on you unreliably when you're working.

Message #11 - Posted 2003/09/06 - D.M. Procida

<slavins wrote:

Don't turn it off, just put it to sleep.

'off': 3 watts. (precise figure depends on model)

It takes 3 Watts to keep the on-board cloack ticking and to monitor the power button? Wow.

That is for models which can be turned-on using a power button on the keyboard. So they have to keep the USB ports running as well.

I'd wondered about that. I thought that the power buttons on USB keyboards were a bit of a hack, and that the power buttons didn't actually involve USB - they just shorted a tiny trickle current on one of the pins (like the ADB keyboards did). this would explain why power buttons won't work through USB hubs.

I was terribly disappointed when power buttons disappeared from keyboards. It seemed like such a retrograde step. And it was such an Apple thing, like Saabs having the ignition key next to the handbrake.

A year or more since having a Mac without a power key on the keyboard, my fingers still reach for it when it's time to shut down.

Daniele

Apple Juice Ltd
Chapter Arts Centre
Market Road www.apple-juice.co.uk Cardiff CF5 1QE 029 2019 0140

Message #12 - Posted 2003/09/06 - PeterD

D.M. Procida wrote:

A year or more since having a Mac without a power key on the keyboard, my fingers still reach for it when it's time to shut down.

Ctrl-eject?

Pd

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.