Skip to main content
Solved

PMSET issues

  • Jul 30, 2023 7:19 AM UTC
  • 3 replies
  • 139 views

Forum|alt.badge.img+5

Hi,

When I issued a sudo pmset repeat wakeorpoweron MTWRFSU 08:00:00

when I check it will show the correct.

Repeating power events:

  wakepoweron at 8:00AM weekdays only

When I issue command sudo pmset repeat shutdown MTWRFSU 18:00:00 it shows only but missing the wakepoweron. Am I missing anything?

Repeating power events:

  wakepoweron at 8:00AM weekdays only

Best answer by sdagley

@yjian The pmset command is not additive, whatever is in the last pmset command will overwrite whatever was previously set, so if you want to schedule both repeating shutdown and startup events it must be done as a single pmset command like this:

sudo pmset repeat shutdown MTWRFSU 18:00:00 wakeorpoweron MTWRFSU 08:00:00

 

View original

3 replies

Forum|alt.badge.img+5
  • Author
  • Contributor
  • Jul 30, 2023 2:22 PM UTC

Correction, after I issue sudo pmset repeat shutdown MTWRFSU 18:00:00. 

It shows only the shutdown everyday 18:00:00 but wakepoweron at 8:00AM weekdays only is missing.

 


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • Answer
  • Jul 31, 2023 2:28 AM UTC

@yjian The pmset command is not additive, whatever is in the last pmset command will overwrite whatever was previously set, so if you want to schedule both repeating shutdown and startup events it must be done as a single pmset command like this:

sudo pmset repeat shutdown MTWRFSU 18:00:00 wakeorpoweron MTWRFSU 08:00:00

 


Forum|alt.badge.img+5
  • Author
  • Contributor
  • Jul 31, 2023 8:58 AM UTC

@yjian The pmset command is not additive, whatever is in the last pmset command will overwrite whatever was previously set, so if you want to schedule both repeating shutdown and startup events it must be done as a single pmset command like this:

sudo pmset repeat shutdown MTWRFSU 18:00:00 wakeorpoweron MTWRFSU 08:00:00

 


Thank you. It works perfectly. All my "&&" and ";" didn't work too.