Cron / every 5 minutes during business hours

Cron every 5 minutes during business hours: */5 9-17 * * 1-5

Every five minutes from 09:00 to 17:55, Monday to Friday. The hour range 9-17 includes every minute of the 17:00 hour.

The expression

*/5 9-17 * * 1-5

In words: At every 5th minute past every hour from 9 through 17 on Monday through Friday.

Field by field

FieldValueMeans
Minute (0–59)*/5every 5th minute
Hour (0–23)9-17every hour from 9 through 17
Day of month (1–31)*every day
Month (1–12)*every month
Day of week (0–6, Sunday = 0)1-5Monday through Friday

Next runs

Starting from 2026-11-27 00:00 UTC:

Try other expressions and timezones in the cron expression tool.

The same schedule on other platforms

Linux crontab. Edit with crontab -e. Runs in the server’s timezone unless you set CRON_TZ (cronie) or TZ.

*/5 9-17 * * 1-5 /path/to/job.sh >> /var/log/job.log 2>&1

GitHub Actions. Schedules run in UTC on the default branch, and runs can start late when GitHub is busy.

on:
  schedule:
    - cron: '*/5 9-17 * * 1-5'

Kubernetes CronJob. Set timeZone (Kubernetes 1.27+) or the schedule follows the controller’s timezone, usually UTC. concurrencyPolicy: Forbid stops runs from overlapping.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "*/5 9-17 * * 1-5"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox
              command: ["sh", "-c", "echo running"]

AWS EventBridge Scheduler. Six fields (the last is the year); one of day-of-month or day-of-week must be ?. Pick the timezone on the schedule.

cron(0/5 9-17 ? * MON-FRI *)

Wisp. Describe the job and say how often in plain words — Wisp writes the function, turns the schedule into this cron expression in your timezone, and runs it with logs and error alerts.

"Every 5 minutes during business hours, fetch new orders from Shopify and post a summary to Slack."

Questions

How do I stop exactly at 17:00? Use two lines: */5 9-16 * * 1-5 plus 0 17 * * 1-5.

Try any expression in the cron tool · Run it on a schedule with Wisp

Related