MinuteHourDayMonthWeekday

Runs at minute 0 past hour 0

Cron Format Reference

Minute

0-59

Hour

0-23

Day

1-31

Month

1-12

Weekday

0-7 (0,7=Sun)

* = any, */n = every n, a,b = multiple, a-b = range

Testing Your Cron Job

Always test your cron expression with crontab -e on Linux/Mac. For debugging, redirect output to a log file: * * * * * /path/to/script.sh >> /var/log/cron.log 2>&1

Domande frequenti (FAQ)

What is a Cron Job?

A cron job is a scheduled task in Unix/Linux systems that runs automatically at specified intervals. Defined in the crontab (cron table) file, they're used for automated backups, report generation, database maintenance, API calls, and server monitoring.

The Cron Expression Format

A cron expression has 5 fields: MINUTE HOUR DAY MONTH WEEKDAY. Each field accepts specific values and wildcards:

  • * — any value (every minute, every hour, etc.)
  • */n — every n units (*/5 = every 5 minutes)
  • a,b — multiple values (1,15 = 1st and 15th)
  • a-b — range (1-5 = Monday through Friday)

Common Cron Job Use Cases

  • 0 0 * * * — Daily backup at midnight
  • */5 * * * * — API health check every 5 minutes
  • 0 9 * * 1-5 — Daily report email every weekday at 9am
  • 0 0 1 * * — Monthly invoice generation
Condividi questo strumento
Last updated: April 3, 2026

Strumenti correlati

More free tools you might like

Vedi tutti gli strumenti