A
A
Alikhan2021-10-22 20:51:08
Python
Alikhan, 2021-10-22 20:51:08

How to make a Python program run even when the computer is asleep?

There is a Python application that runs in the background, but when no one is at the computer for a long time and the computer falls asleep, and the Python program turns off. Is there any way to solve this problem?
P.S. This is Mac

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2021-10-22
@karabanov

Place the program on a computer that does not fall asleep. There is heroku , and you can also buy a virtual machine.

A
Alan Gibizov, 2021-10-23
@phaggi

Install the caffeine program on your Mac . Set it to work continuously without falling asleep. Run your scripts for execution and go to sleep.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question