OS X: scheduled shutdown?

Anyone used a reliable scheduled shutdown program in OS X?
Clive Sweeting wrote on :
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....
Martin replied on :

In article BB7512C3.4557D%clive@redacted.invalid, Clive Sweeting clive@redacted.invalid 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

Stroller replied on :

Clive Sweeting clive@redacted.invalid wrote in message news:BB7512C3.4557D%clive@redacted.invalid...

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.

Clive Sweeting replied on :

On 29/8/03 23:50, in article biolcj$4eu$1$8302bc10@redacted.invalid, "Martin" martin@redacted.invalid 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?

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?

Clive Sweeting replied on :

On 30/8/03 23:20, in article bir7vl$bhr$1$8300dec7@redacted.invalid, "Martin" martin@redacted.invalid wrote:

Oh go on, what's wrong with the Shutdown command? 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

Simon Slavin replied on :

In article BB7512C3.4557D%clive@redacted.invalid, Clive Sweeting clive@redacted.invalid wrote:

Anyone used a reliable scheduled shutdown program in OS X?

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

Chris Ridd replied on :

On 31/8/03 10:52 pm, in article BB782C9F966840DA@redacted.invalid, "Simon Slavin" <slavins@redacted.invalid@redacted.invalid> wrote:

In article BB7512C3.4557D%clive@redacted.invalid, Clive Sweeting clive@redacted.invalid 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

Clive Sweeting replied on :

On 2/9/03 23:27, in article BB7AD7F89668325D3C@redacted.invalid, "Simon Slavin" <slavins@redacted.invalid@redacted.invalid> 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.

D.M. Procida replied on :

slavins@redacted.invalid 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

Simon Slavin replied on :

In article BB78988D.9C85A%chrisridd@redacted.invalid, Chris Ridd chrisridd@redacted.invalid wrote:

<slavins@redacted.invalid@redacted.invalid> 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.

D.M. Procida replied on :

slavins@redacted.invalid 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

PeterD replied on :

D.M. Procida {$usenet$}@redacted.invalid 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?