Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

peter202

macrumors member
Original poster
Sep 2, 2006
43
0
Corby, United Kingdom
Hi all.
Just wandering; If you have set your machine to halt in number of mins if there is a way to cancel that shutdown with a command?

I have searched google and tried all sorts of commands with no luck..

Cheers!
 
From man shutdown:

A scheduled shutdown can be canceled by killing the shutdown process (a
SIGTERM should suffice). The /var/run/nologin file that shutdown created
will be removed automatically.
 
Re:

When you schedule it in Terminal, you should get something like this
Ex. [pid 1345]. In your terminal window (if you have admin access) type "sudo kill whatever the number comes after pid" if it asks you to type in a password, type in an administrator's password. It should quit the process "shutdown". It stops it from shutting down. Hope this helps!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.