How to run a script.py as a daemon (in the background) with python?

0

I have the following python3 script as a basic example:

if __name__=="__main__":
    temperatura = 71 #"función que lee la temperatura del procesador"
    print("Leyendo temperatura del procesador")

    if temperatura >= 70 #grados centigrados":
         print("La temperatura es muy alta")
    else:
         print("ok!")

How can I run this script in the background in windows (daemon or service)?

    
asked by toni 18.11.2018 в 23:34
source

0 answers