Scheduling a Mac to startup at a specific time via the command lineScheduling a Mac to startup at a specific time via the command line

Most Mac users who want to schedule a Mac to startup at a specific time will use the Energy Saver schedule tool in System Preferences, but for the more technically savvy, another option is to schedule the boot time of a Mac through the command line.

We’ll show you how to use the pmset command to schedule a Mac to boot up (or wake from sleep), this is a great tip and I use it to get my Mac to boot before I get to the office, reducing the time necessary to wait to use the computer.

To accomplish this, I used this command syntax with pmset:

pmset repeat wakeorpoweron MTWRF 07:45:00

This tells the Mac to either wake or boot (depending on it’s current state) every Monday through Friday at 7:45am.

You can clear this type of repeat schedule by typing the following:

pmset repeat cancel

That will clear out any set boot and wake schedule, allowing you to set a fresh schedule if desired.

Note that you can do all of this through the Energy Saver GUI, which is an easier approach for people who are less comfortable in the Terminal. The main advantage to learning to use the pmset command via the command line though is that you can schedule these events remotely from anywhere just by using SSH to remotely access a Mac.

Source

Follow Me:
Top Best Sellers!!