All Cron Schedules
Cron Weekends
Run a cron job on Saturday and Sunday at midnight:
0 0 * * 0,6
Understanding the Expression
The cron expression 0 0 * * 0,6 breaks down as follows:
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At midnight (00:00) |
| Day of month | * | Every day of the month |
| Month | * | Every month |
| Day of week | 0,6 | Sunday and Saturday |
Example Usage
Basic crontab entry
0 0 * * 0,6 /path/to/your/script.sh
With output logging
0 0 * * 0,6 /path/to/script.sh >> /var/log/script.log 2>&1
With monitoring
0 0 * * 0,6 /path/to/script.sh && curl -fsS https://cronsignal.io/ping/YOUR_CHECK_ID
Common Use Cases for Weekends
- Business hour jobs: Run tasks during working hours only
- Off-peak processing: Heavy tasks during low-traffic periods
- Scheduled notifications: Send alerts during appropriate hours
- Workday automation: Automate business processes on weekdays
Monitor this schedule
Get alerted when your cron job doesn't run.
Start Monitoring Free3 checks free. No credit card required.