Cron Every 15 Min (Business Hours)

Run a cron every 15 minutes from 9 AM to 5 PM on weekdays with */15 9-17 * * 1-5.

The cron expression */15 9-17 * * 1-5 combines three cron features: a step operator (*/15) in the minute field for every-15-minute intervals, a range (9-17) in the hour field for hours 9 AM through 5 PM, and specific days (1-5). It produces approximately 36 executions per day on Monday and Tuesday and Wednesday and Thursday and Friday. This composite schedule is useful for: high-frequency monitoring during peak hours, customer-facing dashboard refreshes during business times, API rate limit management during high-traffic periods, and batch processing that should only run when the system is under active use. For Quartz Scheduler, use 0 */15 9-17 ? * MON,TUE,WED,THU,FRI. For AWS EventBridge, use cron(0/15 9-17 ? * MON,TUE,WED,THU,FRI *). You can adjust the step value for different frequencies: */5 for every 5 minutes, */15 for quarter-hourly, */30 for half-hourly. The hour range controls the active window.

FAQ

  • What does the cron expression */15 9-17 * * 1-5 mean?

    The expression */15 9-17 * * 1-5 means: at minute */15, hour 9-17, day-of-month *, month *, day-of-week 1-5. Each field in the cron expression controls a different time component: minute, hour, day of month, month, and day of week.

  • How do I add */15 9-17 * * 1-5 to my crontab?

    Run crontab -e in your terminal to open your crontab editor. Add a new line: */15 9-17 * * 1-5 /path/to/your/script.sh. Save and exit. Verify with crontab -l. Make sure your script is executable (chmod +x script.sh) and uses full paths for all commands.

  • What is the equivalent of */15 9-17 * * 1-5 on Quartz / AWS / Kubernetes?

    Quartz Scheduler: */15 9-17 * * 1-5. AWS EventBridge: cron(*/15 9-17 ? * 1-5 *). Kubernetes CronJob: schedule: "*/15 9-17 * * 1-5" (standard 5-field format). Each platform has slight syntax differences — use our dialect switcher above to get the exact expression.

  • Can I combine step and range in the same field?

    Not directly in standard cron. */N applies to the full range (0-59 for minutes, 0-23 for hours). For "every 10 minutes from 9:15 to 5:45," use 15-45/10 9-17 * * * — this combines a starting range with a step. Standard cron supports this in some implementations but not all.

  • What are common mistakes when using */15 9-17 * * 1-5?

    Common pitfalls: (1) Cron uses a minimal PATH — always use full paths to commands and scripts. (2) Percent signs (%) must be escaped with backslash in crontab. (3) Cron runs in the system timezone — set CRON_TZ=UTC at the top of your crontab for consistent UTC scheduling. (4) Redirect output to prevent email spam: */15 9-17 * * 1-5 /path/command >> /var/log/myjob.log 2>&1. (5) Test your cron expression with crontab.guru or our validator above before deploying.

Platform Equivalents for */15 9-17 * * 1-5

The cron expression */15 9-17 * * 1-5 has different syntax on various scheduling platforms. Here is the equivalent expression for each:

PlatformExpression
Unix / Linux crontab*/15 9-17 * * 1-5
Quartz Scheduler (Java)*/15 9-17 ? * 1-5
AWS EventBridgecron(*/15 9-17 ? * 1-5 *)
Kubernetes CronJob*/15 9-17 * * 1-5
Vercel Cron*/15 9-17 * * 1-5
GitHub Actions*/15 9-17 * * 1-5 (UTC)

Key differences across platforms: Quartz uses 7 fields starting with seconds and supports L (last) and W (weekday) modifiers. AWS EventBridge requires a 6th year field and uses ? instead of * in day fields when the other day field is specified. Kubernetes uses standard 5-field Unix cron. Vercel Cron uses the same format but schedules are defined in vercel.json. GitHub Actions uses standard cron but runs in UTC timezone only, so adjust the hour field for your local timezone offset.

Getting Started with Cron

Follow these tips when setting up cron jobs in production:

  • Always use full paths to commands and scripts in your crontab, since cron runs with a minimal PATH environment (often just /usr/bin:/bin).
  • Redirect output to log files: command >> /var/log/myjob.log 2>&1 to capture errors and prevent cron from emailing you every execution.
  • Test your cron expression before deploying — use our validator above or crontab.guru to verify the schedule fires when you expect.
  • Set MAILTO="" at the top of your crontab to disable email notifications, or set MAILTO=your@email.com to receive error alerts.
  • Use flock or a PID file to prevent overlapping executions for jobs that may take longer than their scheduled interval.