My goal is to start a task (specifically, a package to run in Linux Mint 21) at startup between two certain times of day, or at the start time if the computer is already running, to stop at the end time. I know how to accomplish 2 of the three tasks, run at startup and run at certain tod in a cron script, but I dont know how to combine all three statements in a bash script to be referenced in a cron job.
Thank you
I have looked up various solutions on the internet, including pages detailing if and while statements in bash scripts, and various options in cron. None have been specific enough.
I expect my bash script to meet the above criteria and to be inserted into a cron file.