Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Cron - Weekday entry can you mix range and individual days?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 353 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PhizixP
      Phizix
      last edited by

      All,

      I am making a Cron entry (from the GUI package) and it works for Mon-Thu (i.e. "1-4" for the weekday, but I would like to make one that runs on Sun-Thu and Sat. Will it accept "0-4,6" or do I need to enter "0,1,2,3,4,6"?

      Any experience anyone?

      Phizix

      1 Reply Last reply Reply Quote 0
      • F
        Fredouye
        last edited by

        Hi

        You can use lists : https://www.freebsd.org/cgi/man.cgi?crontab%285%29

        "Lists are allowed. A list is a set of numbers (or ranges) separated by
        commas. Examples: 1,2,5,9'', 0-4,8-12''."

        1 Reply Last reply Reply Quote 0
        • PhizixP
          Phizix
          last edited by Phizix

          @Fredouye

          THANKS!! I had done a search, but obviously my search was not well stated to come up with the right answer.

          I entered the "0-4,6" in the weekday field. So it should run tonight. Thanks again.

          Phizix

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.