Run a Cron Job Twice a Week
To run a job twice a week, list the two weekdays in the day-of-week field. For example 0 9 * * 1,4 runs at 9:00 AM every Monday and Thursday. Pick any two days with a comma.
The expression
0 9 * * 1,4 runs at 09:00 on Monday (1) and Thursday (4). The comma list in the last field is how you choose two days.
Day numbers
0 or 7 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday. For Tuesday and Friday use 0 9 * * 2,5.
Change the time
The first two fields are minute and hour. For 6:30 PM on those days use 30 18 * * 1,4.
FAQ
What is the cron expression to run twice a week?
List two days in the day-of-week field, e.g. 0 9 * * 1,4 runs 9 AM every Monday and Thursday.
How do I pick which two days?
Use the day numbers 0-6 (Sun-Sat) separated by a comma. Tuesday and Friday is 2,5; Monday and Thursday is 1,4.
How do I change the time for a twice-weekly job?
Set the minute and hour fields. For 6:30 PM use 30 18 * * 1,4 (the 30 18 is the time).