The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Job minutes error

Discussion in 'General Discussion' started by gary_woods, Apr 29, 2016.

  1. gary_woods

    gary_woods Registered

    Joined:
    Apr 29, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Online
    cPanel Access Level:
    Root Administrator
    I found an issue adding a cron job.

    To run every 10 minutes starting at 5 past every hour, I want to use:

    5/10 * * * *

    But this gives me an error, "bad minute".

    It works fine with:

    */10 * * * *

    But it should be possible to choose when you want the cron to start running of the hour. Clearly a bug. Is there a fix for this? Please let me know if you need any further clarification.
     
  2. deadlock

    deadlock Well-Known Member

    Joined:
    May 12, 2002
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Your cron job will not work as you're suggesting and it's not a bug, it's your syntax error. This will achieve what you want:

    5,15,25,35,45,55 * * * *
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,712
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It's not currently possible to utilize proceeding slashes to declare intervals in the user interface when adding cron jobs. Feel free to open a feature request for this at:

    Submit A Feature Request

    In addition, you may also find interest in the following feature request:

    Cron limits

    Thank you.
     
Loading...

Share This Page