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

    Day of week not accepted on Cron package

    General pfSense Questions
    4
    8
    286
    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.
    • E
      eduardomozart
      last edited by

      Hello,
      I was unable to found the repository of Cron package, so I'm reporting it here.
      I was unable to use "wed" to specify Wednesday as "Day of the Week", I had to use it integer denomination (3). But the tip into the fields states that names are supported: The day(s) of the week on which the command will be executed. (0-7, 7=Sun or use names, ranges, or divided, *=all)
      It's also stated on FreeBSD documentation it's UNIX cron format as names are supported: https://man.freebsd.org/cgi/man.cgi?crontab%285%29

      S GertjanG 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @eduardomozart
        last edited by

        @eduardomozart not near a router atm but you can file a bug report at pfSense.redmine.org.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        E 1 Reply Last reply Reply Quote 0
        • E
          eduardomozart @SteveITS
          last edited by

          @SteveITS Hello, thank you. The correct domain is "redmine.pfsense.org". I'll open a bug report there.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @eduardomozart
            last edited by

            @eduardomozart oops sorry

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 0
            • E
              eduardomozart
              last edited by

              It has been fixed into https://redmine.pfsense.org/issues/16096 but not sure if a new Cron package has been released yet

              patient0P 1 Reply Last reply Reply Quote 0
              • patient0P
                patient0 @eduardomozart
                last edited by

                @eduardomozart said in Day of week not accepted on Cron package:

                It has been fixed into https://redmine.pfsense.org/issues/16096 but not sure if a new Cron package has been released yet

                I assume you read through that ticket? Their solution is to change the tip and remove the mention of "... or use names". You won't be able to use day of the week short names like 'wed'.

                One would think it should be possible to add an input validation regex to include the (sun|mon|tue|wed|thu|fri|sat) without too much work. Certainly more work than remove the tool tip though.

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @eduardomozart
                  last edited by

                  @eduardomozart said in Day of week not accepted on Cron package:

                  (0-7, 7=Sun or use names, ranges, or divided, *=all)

                  What happens if the pfSense language isn't 'EN' or 'US' ?

                  @patient0 said in Day of week not accepted on Cron package:

                  input validation regex to include the (sun|mon|tue|wed|thu|fri|sat)

                  would work fine for some, not most of us ^^

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  patient0P 1 Reply Last reply Reply Quote 0
                  • patient0P
                    patient0 @Gertjan
                    last edited by

                    @Gertjan said in Day of week not accepted on Cron package:

                    would work fine for some, not most of us ^^

                    I agree but that is what cron natively supports.

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