Answers for "python scheduler run once"

1

python repeating scheduler

import schedule
import time

def job():
   print("I'm working...")

schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)

while 1:
   schedule.run_pending()
   time.sleep(1)
Posted by: Guest on April-19-2021
0

how to schedule python script in windows

In CMD for Windows 10/11:
> at æ "ø"

Insert time instead of æ, for example like this: at 10:25 "ø"
Insert path to file instead of ø, for example this: C:\Users\Clumsy\AppData\Local\Programs\Python\Python39\myscript.exe
This also works for .ahk and .py scripts, and I think it works with others (such as .js and .bat)
Posted by: Guest on November-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language