Tools › Cron examples › weekends
Cron expression for weekends
The cron expression for weekends is:
What it does
Runs at 10:00 on Saturday and Sunday.
Field by field
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | exactly 0 |
| Hour | 10 | exactly 10 |
| Day of month | * | every value |
| Month | * | every value |
| Day of week | 6,0 | list 6,0 |
Typical uses
Low-priority batch jobs, weekend-only reports, or maintenance windows.
Watch out for
Lists use commas without spaces: 6,0. A space would be read as a new field.
Add it to your crontab
crontab -e, then add:
0 10 * * 6,0 /path/to/command >> /var/log/myjob.log 2>&1
Related schedules
every minuteevery 5 minutesevery 10 minutesevery 15 minutesevery 30 minutesevery hourevery 2 hoursevery day at midnightevery day at 3amevery weekday at 9amevery 15 minutes during business hoursevery Mondayevery Sunday at midnighton the first day of every monthon the last day of the monthevery quartertwice a day