Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Crontab ranges

    Posted on

    I have created a crontab that is supposed to only run on certain days of the month, but it is not working. Instead, it runs every Sunday.

    Here is the crontab:

    m h dom mon dow command

    0 0 15-21 * 0 nonprod.sh
    0 5 15-21 * 0 nonprod-reboot.sh
    0 0 22-28 * 0 prod.sh
    0 0 22-28 * 0 prod.sh

    Is the syntax I am using for ranges not valid?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat