[Tutor] schedulers
nathan tech
nathan-tech at hotmail.com
Thu Feb 28 09:45:59 EST 2019
Hi there,
I recently started working on a backup program, and the one big feature
everyone wants in backup programs is the ability to schedule backups, right?
but I'm thinking, should I do this?
def do_backup
# backup code here, without prints to screen or anything so it just
does it in the background...
def scheduler():
global tus # tus=time until schedule
while(time.time()>tus):
time.sleep(5)
scheduler()
Is that wise? Is that how it should be done?
This is a program for windows.
Thanks!
Nathan
More information about the Tutor
mailing list