---
title: "Discussion on \"Five cron mistakes that move an every-five-minutes job\" | Hashnode"
description: "Discussion on \"Five cron mistakes that move an every-five-minutes job\". Start from the mistakes that shift a five-field crontab, then the clock-aligned */5 list and a one-cycle test."
url: "https://hashnode.com/posts/five-cron-mistakes-that-move-an-every-five-minutes-job/6ae57c6a71906bfc3a23c8e3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Five cron mistakes that move an every-five-minutes job](https://kepttools.hashnode.dev/five-cron-mistakes-that-move-an-every-five-minutes-job?utm_source=hashnode&utm_medium=feed)

Start from the mistakes that shift a five-field crontab, then the clock-aligned \*/5 list and a one-cycle test.

Oct 31 · 5 min read · kepttools.hashnode.dev  
Read the article

-   [#cron](https://hashnode.com/tag/cron)
-   [#linux](https://hashnode.com/tag/linux)
-   [#devops](https://hashnode.com/tag/devops)
-   [#beginners-guide](https://hashnode.com/tag/beginners-guide)
-   [#kepttools](https://hashnode.com/tag/kepttools)

## Written by

[Ameen Usman](https://hashnode.com/@ameenusman)

@ameenusman

  
[View profile](https://hashnode.com/@ameenusman)

Free browser developer tools. Nothing you paste is uploaded.

## Responses 2

Markdown supported · ⌘↵ to post

[c-wind](https://hashnode.com/@c-wind)

[Oct 31](https://hashnode.com/posts/five-cron-mistakes-that-move-an-every-five-minutes-job/6ae57c6a71906bfc3a23c8e3/comment/6ae5f1d1e86a388c95ca320f)

The 5-59/5 vs \*/5 split is the one that fails quietly. The line looks like every five minutes, but it never fires at minute 0, so the top of the hour is just missing. Same class of bug on the day-of-month step: on cronie, 0 0 \*/5 \* \* lands on the 1st, 6th, 11th, 16th, 21st, 26th, and 31st, not on dates divisible by 5. And the overlap point matches what I've hit: classic cron will start the next \*/5 while a six-minute command is still going, so the fix is flock in the command, not a wider schedule.

[Ameen Usman](https://hashnode.com/@ameenusman)

[Oct 31](https://hashnode.com/posts/five-cron-mistakes-that-move-an-every-five-minutes-job/6ae57c6a71906bfc3a23c8e3/comment/6ae5f1d1e86a388c95ca320f#reply-6ae6045da937c2e08d03082c)

Thanks for spelling that out. 5-59/5 is the one that looks fine until the top of the hour never shows up. The day-of-month step fails the same way, and the overlap case is the one we kept coming back to: flock inside the command, and leave \*/5 as it is.
