Skip to content Skip to sidebar Skip to footer

How To Make Python Script Running Continuously While Computer System In Sleeping Mode? (macos)

I'd like to keep my Python script running, even when my computer is sleeping. I am using a Mac. My file is only on my computer, not online. I know of UptimeRobot, but I don't know

Solution 1:

It's very simple.

  1. open a terminal

  2. type caffeinate

  3. press Enter

Once you have done this, your Mac will stay awake for as long as you leave the Terminal running.

You can minimize or hide it, and your Mac will not go to sleep until you use the keyboard shortcut Ctrl+C to interrupt the command.

source

Post a Comment for "How To Make Python Script Running Continuously While Computer System In Sleeping Mode? (macos)"