McCrontabcron & DST lab
0 bytes sent

Whole-File Crontab Linter & Thundering Herd Auto-Stagger

Unix, Kubernetes CronJob, Quartz, AWS EventBridge, GitHub Actions, systemd. 100% local in this tab.

Paste Whole crontab -l File (0 Bytes Uploaded)

Parsed Jobs7
Peak Simultaneous5 at 00:00
Lint Findings10

24-Hour Job Trigger Distribution

00:00 - 16 job triggers00h01:00 - 12 job triggers02:00 - 13 job triggers02h03:00 - 12 job triggers04:00 - 12 job triggers04h05:00 - 12 job triggers06:00 - 12 job triggers06h07:00 - 12 job triggers08:00 - 12 job triggers08h09:00 - 13 job triggers10:00 - 12 job triggers10h11:00 - 12 job triggers12:00 - 12 job triggers12h13:00 - 12 job triggers14:00 - 12 job triggers14h15:00 - 12 job triggers16:00 - 12 job triggers16h17:00 - 12 job triggers18:00 - 12 job triggers18h19:00 - 12 job triggers20:00 - 12 job triggers20h21:00 - 12 job triggers22:00 - 12 job triggers22h23:00 - 12 job triggers
critical

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

critical

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.

high

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 ] && ...).

medium

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

info

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

info

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

info

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

info

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

info

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

info

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.