I need to run a script between some hours of a given day of week as soon as the machine is turned on. For example: every Monday between 07:00 and 10:00.
I know how to handle the time conditions "between some hours of a given day of week" and "as soon as the machine is turned on" independently with cron jobs. However, I did not find so far an elegant solution to combine both.
I explore the option to run at the end of the time range (but not what I want).
I also saw the option of Anacron: in this question previously asked but the granularity of anacron is not fine enough.
How could I implement such pseudo-periodic? Sould I combine a cron job @reboot plus a script?