Reputation: 251
I want to schedule a script at different timings on different day but with a single crontab entry. e.g I want to schedule a script like below: it should run at
30 8-5 * * 1-4 script.sh
on mon-thu
and same should run at:
30 11-5 * * 5-6 script.sh
on Fri,Sat.
Please suggest how to schedule this in one crontab entry.
Upvotes: 2
Views: 58
Reputation: 22225
You can't.
Just being curious: Is there any advantage in having it into one line, except that it saves you typing "script.sh" twice?
Upvotes: 1