Vai al contenuto principale
TOP free online tools Il tuo banco di lavoro
Italiano
Riferimento Ultimo aggiornamento: 2026-11-23

Foglio di riferimento sintassi Cron

Riferimento ricercabile per espressioni cron a 5 campi, macro POSIX, intervalli a passo, intervalli orari e pianificazioni settimanali o mensili.

Click any cell to copy
34 / 34
ExpressionHuman ScheduleCategoryNotes
* * * * *Every minuteFrequentRuns 1,440 times per day; avoid heavy jobs without locking
*/2 * * * *Every 2 minutesFrequentStep value divides 0-59 minutes evenly (0, 2, 4, ... 58)
*/5 * * * *Every 5 minutesFrequentPopular polling and health-check interval
*/10 * * * *Every 10 minutesFrequentExecutes at :00, :10, :20, :30, :40, and :50
*/15 * * * *Every 15 minutesFrequentEquivalent to 0,15,30,45 * * * *
*/30 * * * *Every 30 minutesFrequentExecutes at :00 and :30 of every hour
5,35 * * * *Twice per hour at :05 and :35HourlyStaggered offset avoids top-of-hour traffic spikes
0 * * * *Every hour on the hourHourlyEquivalent to the @hourly macro
17 * * * *Every hour at minute 17HourlyPrime minute offset reduces thundering-herd load
0 */2 * * *Every 2 hoursHourlyRuns at 00:00, 02:00, 04:00 ... 22:00
0 */4 * * *Every 4 hoursHourly6 executions per day at even 4-hour marks
0 */6 * * *Every 6 hoursHourlyRuns at 00:00, 06:00, 12:00, and 18:00 UTC
0 */12 * * *Twice daily at 00:00 and 12:00DailyUseful for twice-daily database snapshots
0 0 * * *Every day at midnight (00:00)DailyEquivalent to @daily and @midnight
30 2 * * *Every day at 02:30DailyCommon off-peak nightly maintenance window (watch DST in local time)
0 6,18 * * *Daily at 06:00 and 18:00DailyComma-separated list in the hour field
0 9-17 * * *Hourly from 09:00 through 17:00 dailyDailyInclusive hour range 9..17
*/15 9-17 * * 1-5Every 15 minutes during weekday business hoursBusiness HoursMonday (1) through Friday (5), 09:00-17:45
0 9 * * MON-FRIWeekdays at 09:00Business HoursNamed weekday range equivalent to 1-5
30 18 * * 1-5Weekdays at 18:30Business HoursEnd-of-business-day report or cleanup
0 0 * * 0Every Sunday at 00:00WeeklyBoth 0 and 7 represent Sunday in Vixie cron; equivalent to @weekly
0 3 * * MONEvery Monday at 03:00WeeklyThree-letter weekday names are case-insensitive
0 4 * * SAT,SUNWeekends at 04:00WeeklyRuns Saturday and Sunday only
0 1 1 * *First day of every month at 01:00MonthlyIdeal for monthly billing or log rotation
0 0 1,15 * *1st and 15th of every month at 00:00MonthlyBi-monthly payroll or invoice sync
0 0 1 */3 *First day of every quarter at 00:00QuarterlyRuns Jan 1, Apr 1, Jul 1, and Oct 1
0 0 1 JAN *January 1 at 00:00 (yearly)YearlyEquivalent to @yearly and @annually
0 12 29 2 *Leap day (Feb 29) at 12:00YearlyExecutes only in leap years
@hourlyMacro: once an hour (0 * * * *)MacroSupported by Vixie/GNU cron and most cloud schedulers
@dailyMacro: once a day at midnight (0 0 * * *)MacroAlias for @midnight
@weeklyMacro: once a week on Sunday (0 0 * * 0)MacroRuns at 00:00 Sunday
@monthlyMacro: once a month on day 1 (0 0 1 * *)MacroRuns at 00:00 on the 1st of each month
@yearlyMacro: once a year on Jan 1 (0 0 1 1 *)MacroAlias for @annually
@rebootMacro: once at system/daemon startupMacroRuns on boot in system cron; not supported in stateless cloud cron

Strumenti correlati

Guide correlate

Riferimenti correlati

Domande frequenti

What do the five fields in a standard POSIX cron expression represent?
From left to right, the five fields represent minute (0-59), hour (0-23), day of month (1-31), month (1-12 or JAN-DEC), and day of week (0-7 or SUN-SAT, where both 0 and 7 denote Sunday).
How does standard cron handle when both Day of Month and Day of Week are restricted?
In standard POSIX/Vixie cron, when both day-of-month and day-of-week are non-wildcard (*), the job runs whenever either condition matches (logical OR), rather than requiring both to match simultaneously.
What schedules do shorthand cron @macros like @daily and @hourly expand to?
@hourly equals 0 * * * *, @daily and @midnight equal 0 0 * * *, @weekly equals 0 0 * * 0, @monthly equals 0 0 1 * *, @yearly and @annually equal 0 0 1 1 *, and @reboot runs once at daemon startup.