Cron Every 10 Minutes During Night Hours (10 PM-6 AM)
Schedule a cron job every 10 minutes during nighttime hours using */10 22-23,0-5 * * *. Complete field breakdown for overnight interval scheduling.
Cron Expression
*/10 22-23,0-5 * * *
Field Breakdown
| Field | Value | Meaning |
|---|---|---|
| Minute | */10 | Every 10th minute |
| Hour | 22-23,0-5 | From 22 to 23,0 |
| Day of Month | * | Every day of the month (1–31) |
| Month | * | Every month (1–12) |
| Day of Week | * | Every day of the week (Sun–Sat) |
Detailed Explanation
The cron expression */10 22-23,0-5 * * * schedules a task to run every 10 minutes during nighttime hours, from 10 PM to 5:59 AM, every day.
Field-by-field breakdown:
*/10(Minute): Every 10th minute, starting from minute 0. The step value/10triggers at minutes 0, 10, 20, 30, 40, and 50 within each qualifying hour.22-23,0-5(Hour): Hours 22 (10 PM) through 23 (11 PM), and hours 0 (midnight) through 5 (5 AM). The combination of a range and a list covers the overnight window from 10 PM to 5:59 AM.*(Day of Month): Every day from 1 through 31. No restriction on the day of the month.*(Month): Every month from January through December. No restriction on which month.*(Day of Week): Every day of the week from Sunday through Saturday. No restriction on the day.
This means your task will execute 48 times per night (6 runs per hour across 8 hours). This pattern provides frequent overnight monitoring without consuming resources during the day. It is particularly useful for watching batch jobs, monitoring backup processes, or checking system health during the maintenance window when automated processes are most active but human operators are least available. This expression is supported by standard cron on Linux/macOS, as well as cloud services like AWS CloudWatch, Google Cloud Scheduler, and GitHub Actions.
Use Case
Perfect for monitoring overnight backup job progress every 10 minutes, sending alerts if any backup task fails or exceeds its expected completion time.
Try It — Interactive Builder
every 10 min, at hour 22-23,0-5
Next 10 Executions
Ctrl+Shift+C to copy expression