I need to execute a cronjob to run once for 7 days alone. I have tried like this:
0 0 * * 0-6 myscript.sh
It gets run for once a day and running every day of the week since I gave as 0-6.
But I need to run a job for one week alone not followed by multiple days. I do not want to mention the date of the month, since I need it to run at various times.
Using special command time in cron, I use @daily option alone
How can I set the job to run for 7 days alone?