Scheduling Python script using Python CronTab on Windows 7
问题 I want to schedule a python script using the python-crontab module on Windows platform. Found the following snippet to work around but having a hard time to configure. Script name cronTest.py : from crontab import CronTab file_cron = CronTab(tabfile='filename.tab') mem_cron = CronTab(tab=""" * * * * * command """) Let's say, for example, I want to print date & time for ever 5 mins using the following script, named dateTime.py : import datetime with open('dateInfo.txt','a') as outFile: outFile