Mar-30-2017, 12:06 PM
Are you sure that there is no still working process at 6 am before starting it again? As I see, your program doesn't end. It runs an endless loop. You have to put sys.exit(0) inside the
else
block.import sys while True: d = datetime.now() if d.hour > 6 and d.hour < 22: # do your time lapse things else: # Just trapping out the WHILE Statement print " ====================================== Doing nothing at this time" sys.exit(o)