Tools › Cron examples › weekends

Cron expression for weekends

The cron expression for weekends is:

0 10 * * 6,0

What it does

Runs at 10:00 on Saturday and Sunday.

Field by field

FieldValueMeaning
Minute0exactly 0
Hour10exactly 10
Day of month*every value
Month*every value
Day of week6,0list 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
Copied to clipboard