shinek
shinek

Reputation: 251

Scheduling a script

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

Answers (1)

user1934428
user1934428

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

Related Questions