{{ humanReadable }}
Cron is a time-based job scheduler used in most UNIX-like systems to execute commands automatically. A cron expression comprises five fields—minute, hour, day-of-month, month, and day-of-week—each accepting patterns such as asterisks, ranges, steps, or explicit values. Together these fields translate human scheduling intentions into machine-interpretable instructions guaranteeing repeatable, reliable execution.
This generator turns your field selections or preset templates into a syntactically correct cron line and explains the schedule in plain English. It handles simple wildcards, stepped intervals, numeric ranges, and multi-value lists, then appends the command path so the output is immediately ready for insertion into a crontab file.
Use it whenever you need to automate backups, log rotations, or periodic API calls without memorising cron syntax; simply enter your timing preferences, copy the generated line, and paste it into your server’s crontab for instant automation. Always test critical schedules in a staging environment before deploying them to production.
A cron expression is a positional specification that maps temporal units to execution flags. Each field supports numeric values or textual aliases that identify discrete slices of its unit. Wildcards match every unit, step syntax n/m selects every m-th unit starting at n, ranges define contiguous spans, and comma-separated lists allow heterogeneous selections. By concatenating the five fields in fixed order and appending a shell command, cron converts the pattern into system calls at the kernel-maintained minute tick.
minute hour day-of-month month day-of-week
) against its pattern.Macro | Expanded Expression |
---|---|
@reboot | Runs once at system start-up |
@hourly | 0 * * * * |
@daily | 0 0 * * * |
@weekly | 0 0 * * 0 |
@monthly | 0 0 1 * * |
@yearly | 0 0 1 1 * |
Nightly backup at 00:00:
Step 2: append command path
Result: 0 0 * * * /usr/bin/backup.sh
*/0
are invalid and skipped.Scientific and technical background: POSIX 1003.1-2017 defines cron syntax; manuals such as Vixie-cron (1993) and the Debian Cron HOWTO critique and expand on practical usage.
This concept handles only scheduling metadata; no personal data is processed, ensuring GDPR compliance by design.
Follow these actions in order to generate a valid schedule.
*
for every value or commas and ranges for specificity.crontab -e
.All processing occurs locally in the browser; the schedule never leaves your device, so nothing is logged or transmitted.
An asterisk matches every possible value of its field, effectively telling cron to ignore that unit.
The step operator instructs cron to execute the command every nth unit; */5
in minutes triggers every five minutes.
Yes, but most engines evaluate the expression with an OR logic, running when either field matches.
The special macro bypasses fields and schedules the command to run once immediately after the system finishes booting.
*/n
indicating every nth unit.