Created
October 23, 2023 18:58
-
-
Save qpwo/50b6fd0f5cef7ca64fc7b6f0729e56a8 to your computer and use it in GitHub Desktop.
macos ventura force shutdown daily (and wake up from sleep)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make a cron job | |
sudo crontab -e | |
# add this line to shutdown every day at 2:00AM: | |
# 0 2 * * * /sbin/shutdown -h now | |
# check your cron job is there: | |
sudo crontab -l | |
# the job won't run if computer is asleep. Wake up first to run it. | |
sudo pmset repeat wake MTWRFSU 01:59:00 | |
# check your schedule worked: | |
pmset -g sched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment