Weekends at Midnight (Sat & Sun) (0 0 * * 0,6)
Both 0 and 7 denote Sunday in Vixie cron; 0,6 is universally portable.
Cron Schedule
Next 8 Runs (Europe/Bratislava)
- 2026-12-05 00:00 (Sat)2026-12-04T23:00:00.000Z
- 2026-12-06 00:00 (Sun)2026-12-05T23:00:00.000Z
- 2026-12-12 00:00 (Sat)2026-12-11T23:00:00.000Z
- 2026-12-13 00:00 (Sun)2026-12-12T23:00:00.000Z
- 2026-12-19 00:00 (Sat)2026-12-18T23:00:00.000Z
- 2026-12-20 00:00 (Sun)2026-12-19T23:00:00.000Z
- 2026-12-26 00:00 (Sat)2026-12-25T23:00:00.000Z
- 2026-12-27 00:00 (Sun)2026-12-26T23:00:00.000Z
Provided as is, without warranty. Verify results; consult an expert for important decisions. Disclaimer
Schedule translations, DST collision findings, and stagger suggestions can be wrong for your cron daemon, timezone database, or environment. Test every expression in the target system before you use it in production.
Unix crontab (flock-guarded)
0 0 * * 0,6 /usr/bin/flock -n /tmp/job.lock /usr/local/bin/job.sh >> /var/log/job.log 2>&1
Kubernetes CronJob YAML
apiVersion: batch/v1 kind: CronJob metadata: name: scheduled-job spec: schedule: "0 0 * * 0,6" timeZone: "Europe/Bratislava" concurrencyPolicy: Forbid startingDeadlineSeconds: 300 successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 3
Spring / Java Quartz
@Scheduled(cron = "0 0 0 ? * SUN,SAT", zone = "Europe/Bratislava")
AWS EventBridge
cron(0 0 ? * SUN,SAT *)
GitHub Actions (UTC)
on:
schedule:
# GitHub Actions schedules ALWAYS run in UTC
- cron: '0 0 * * 0,6'Linux systemd Timer
[Unit] Description=Scheduled Job Timer [Timer] OnCalendar=Sun,Sat *-*-* 0:0:00 RandomizedDelaySec=120 Persistent=true [Install] WantedBy=timers.target
Paste Whole crontab -l File (0 Bytes Uploaded)
24-Hour Job Trigger Distribution
Unescaped "%" in command at line 2 silently truncates execution
Vixie cron converts unescaped "%" characters (like date +%Y-%m-%d) into newlines and feeds the rest to stdin. Guide
Fix: /usr/bin/pg_dump app > /backups/app-$(date +\%Y-\%m-\%d).sql
Thundering herd: 5 jobs fire simultaneously at 00:00
Starting 5 jobs on the exact same minute causes CPU, disk I/O, and database connection spikes. Click "Auto-Stagger Jobs" to spread them across quiet minutes. Guide
Fix: Spread colliding :00 jobs across prime/odd minutes (e.g. 03, 07, 13, 19, 23) or use systemd RandomizedDelaySec.
DOM + DOW OR trap at line 7 (0 9 15 * 1)
Runs on day 15 OR on weekday 1, not only when both match. Guide
Fix: Restrict one field to * and guard the second condition inside the command (e.g. [ "$(date +\%u)" -eq 1 ] && ...).
High-frequency job (288x/day) without flock guard at line 8
If one run hangs past its interval, overlapping processes can exhaust CPU/DB connections. Guide
Fix: /usr/bin/flock -n /tmp/cron_job_8.lock /usr/local/bin/poll_queue.sh
Unredirected stdout/stderr at line 3 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/rotate_logs.sh >> /var/log/cron_job_3.log 2>&1
Unredirected stdout/stderr at line 4 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/rollup_metrics.sh >> /var/log/cron_job_4.log 2>&1
Unredirected stdout/stderr at line 5 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/sync_billing.sh >> /var/log/cron_job_5.log 2>&1
Unredirected stdout/stderr at line 6 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/charge_subscriptions.sh >> /var/log/cron_job_6.log 2>&1
Unredirected stdout/stderr at line 7 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/monthly_monday_report.sh >> /var/log/cron_job_7.log 2>&1
Unredirected stdout/stderr at line 8 without MAILTO=""
Every line printed by this command triggers local cron mail delivery or /var/mail spool growth. Guide
Fix: /usr/local/bin/poll_queue.sh >> /var/log/cron_job_8.log 2>&1
Provided as is, without warranty. Verify results; consult an expert for important decisions. Disclaimer
Schedule translations, DST collision findings, and stagger suggestions can be wrong for your cron daemon, timezone database, or environment. Test every expression in the target system before you use it in production.