Since you lose the ability to specify ranges after you set the days, I think the best option would be to provide time ( every 10 minutes from 07:00 to 15:00 ), and then check your script itself, which checks the current date to determine if it is a weekday or not. You can do this with something simple:
>>> import datetime >>> today = datetime.datetime.today() >>> today.weekday() 1
Where 0 = Monday, 1 = Tuesday, etc. If your cron confirms that the current day of the week was in (5, 6) , you can simply exit your program. One way to structure this can be to bind your cron to a simple function that checked the day β if your main function is called on a weekday; if not, it ends. There may be a better way, but what's the best I can think of right now :)
source share