Understanding Cron Syntax
Cron is a software utility that is a time-based job scheduler in Unix-like computer operating systems. Users who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals.
Syntax Breakdown
A crontab file has five fields for specifying time, followed by the command to run:
- Minute: 0 through 59
- Hour: 0 through 23
- Day of Month: 1 through 31
- Month: 1 through 12
- Day of Week: 0 through 6 (0 is Sunday)