← All cron schedules

Cron every 5 hours

The cron expression 0 */5 * * * runs a job at 00:00, 05:00, 10:00, 15:00 and 20:00, every day. The next runs are 2026-11-27 05:00 and 2026-11-27 10:00 UTC. The shortest gap between runs is 4 hours, so a heartbeat monitor with a 30-minute grace period catches a missed run.

Cron expression for every 5 hours:
0 */5 * * *
At 00:00, 05:00, 10:00, 15:00 and 20:00, every day.
minutehourday of monthmonthday of week
0*/5***
Common mistake: * */5 * * * is not every 5 hours. With * in the minute field it runs every minute of each matching hour (00:00-00:59, 05:00-05:59 …), 300 runs a day instead of 5. Keep a fixed minute: 0 */5 * * *.

Next runs (UTC)

  1. Fri 2026-11-27 05:00 UTC (+00:00) · in 1h 30m
  2. Fri 2026-11-27 10:00 UTC (+00:00) · in 6h 30m
  3. Fri 2026-11-27 15:00 UTC (+00:00) · in 11h 30m
  4. Fri 2026-11-27 20:00 UTC (+00:00) · in 16h 30m
  5. Sat 2026-11-28 00:00 UTC (+00:00) · in 20h 30m
  6. Sat 2026-11-28 05:00 UTC (+00:00) · in 1d 1h
  7. Sat 2026-11-28 10:00 UTC (+00:00) · in 1d 6h
  8. Sat 2026-11-28 15:00 UTC (+00:00) · in 1d 11h
  9. Sat 2026-11-28 20:00 UTC (+00:00) · in 1d 16h
  10. Sun 2026-11-29 00:00 UTC (+00:00) · in 1d 20h

Notes for this schedule

5 doesn't divide 24: this runs at 00:00, 05:00, 10:00, 15:00 and 20:00, then 00:00 again, a 4-hour gap. Cron resets the step every day. For an exact 5-hour rhythm use a systemd timer with OnUnitActiveSec=5h.

This schedule in numbers

  • Fires 5 times on each day it runs: 1,825 times in 2026.
  • Converted to systemd: OnCalendar=*-*-* 00/5:00:00, the line used in the timer below; systemd-analyze calendar prints its next elapse times so you can compare them with the list here.
  • On a UTC server the 5 daily runs land at 01:30, 05:30, 10:30, 15:30, 20:30 India time (UTC+05:30, no daylight saving), the same all year.
  • None of its 5 daily runs falls in the skipped or repeated hour of the next DST changes in New York or London, so a server in either zone still runs it 5 times on those days.

Next 5 runs on a UTC server, with India time

UTCIST (UTC+05:30)
Fri 27 Nov 2026, 10:30
Fri 27 Nov 2026, 15:30
Fri 27 Nov 2026, 20:30
Sat 28 Nov 2026, 01:30 (next day)
Sat 28 Nov 2026, 05:30

Examples

crontab (crontab -e)
0 */5 * * * /usr/local/bin/my-job.sh && curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>
systemd timer
# /etc/systemd/system/my-job.timer
[Unit]
Description=Run my-job (every 5 hours)

[Timer]
OnCalendar=*-*-* 00/5:00:00
Persistent=true

[Install]
WantedBy=timers.target
and the service it starts
# /etc/systemd/system/my-job.service
[Unit]
Description=my-job

[Service]
Type=oneshot
ExecStart=/usr/local/bin/my-job.sh
# runs only if ExecStart succeeded
ExecStartPost=/usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>

Check the calendar spec with systemd-analyze calendar "*-*-* 00/5:00:00", then systemctl enable --now my-job.timer. Persistent=true runs a missed job at boot. Convert this schedule to Quartz or AWS cron() →

Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "0 */5 * * *"
  timeZone: "Etc/UTC"          # Kubernetes 1.27+; otherwise the controller's timezone
  concurrencyPolicy: Forbid       # don't start a new run while one is active
  startingDeadlineSeconds: 300    # still start if the controller was briefly down
  jobTemplate:
    spec:
      backoffLimit: 2
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: your-image:tag
              command: ["/bin/sh", "-c", "/app/run-job.sh && curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>"]
GitHub Actions
on:
  schedule:
    - cron: "0 */5 * * *"   # UTC unless you add timezone: under it
  workflow_dispatch: {}          # lets you run it by hand too

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./run-job.sh
      - name: Tell Vigil the job ran
        if: success()
        run: curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/${{ secrets.VIGIL_PING_TOKEN }}

GitHub reads schedules in UTC unless the entry sets timezone: (an IANA name), can delay them at busy times, and disables scheduled workflows in public repos after 60 days without activity.

Common mistakes

Server timezone. cron uses the machine's local timezone, and most cloud VMs and containers are set to UTC. Check with timedatectl or date. cronie (RHEL, Fedora, Arch) accepts CRON_TZ=Asia/Kolkata at the top of a crontab; Debian/Ubuntu cron does not.
Daylight saving time. On DST days, local times around 01:00-03:00 are skipped or repeated. Vixie cron/cronie try to run skipped fixed-time jobs just after the jump and not twice in the repeated hour; Kubernetes, systemd and most libraries behave differently. Schedule in UTC if 'exactly once' matters.
Day-of-month OR day-of-week. If both the 3rd and 5th fields are restricted, cron runs when either matches: 0 0 13 * 5 runs on every 13th and every Friday, not only on Friday the 13th.
Unescaped %. In a crontab line, % is turned into a newline (everything after it goes to the command's stdin). Write date +\%F, not date +%F.
A different environment. cron runs with a minimal PATH (often just /usr/bin:/bin), no login shell and no .bashrc. Use absolute paths and set variables at the top of the crontab.
Silent failures. cron doesn't tell anyone when a job fails or stops running; output goes to local mail nobody reads. A heartbeat monitor that expects a ping after every run is the only reliable way to notice.

How to get alerted when it doesn't run

A cron job that stops running looks exactly like one that's working: no errors, no output. The reliable fix is a heartbeat (dead man's switch): the job pings a URL each time it finishes, and the monitor alerts you when a ping is late.

  1. Create a heartbeat in Vigil and choose cron schedule: 0 */5 * * *, timezone of your server.
  2. Set a grace period of about 30 minutes: long enough for a normal run to finish, short enough that you hear about it quickly.
  3. Add the ping to the end of the command (above). && means only successful runs ping; use /ping/<token>/$? to report the exit code, and /start to catch jobs that hang.

Watch this schedule — get alerted if it doesn't run

More: how to monitor cron jobs (exit codes, run time, logs) · heartbeat monitoring, explained

Related: every hour 0 * * * * · every hour at half past 30 * * * * · every 2 hours 0 */2 * * * · every 3 hours 0 */3 * * * · every 4 hours 0 */4 * * * · every 6 hours 0 */6 * * * · every 8 hours 0 */8 * * * · every 12 hours 0 */12 * * *
How Vigil can watch this for you

Vigil tells you when a run is missed

Vigil heartbeats understand cron expressions and timezones, so they know exactly when each run is due. Missed, failed or stuck runs alert you on email, Slack, Telegram, Discord or a webhook, and the history shows every run's duration.

Monitor this cron job free
Free plan, no card. Alerts on email, Telegram, Slack, Discord, Teams or any webhook.
More free tools: