Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Why do crons that run once a week, run on Saturday instead of Monday?

Discussion in 'General Discussion' started by desbest, Dec 3, 2016.

Tags:
  1. desbest

    desbest Member

    Joined:
    Jan 7, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    Why do crons that run once a week, run on Saturday instead of Monday?
    My cron is for time 0 1 * * 0 and it runs on saturday not monday, when I chose the once a week setting.

    Why?
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    819
    Likes Received:
    299
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    The 0 1 * * 0 (0 at the end) should run your cron on a Sunday -

    1) Are you sure this cron is the one that is being executed on a Saturday ?
    2) Are you sure the server date/time settings are correct ?
    3) Are you in the same time zone as the server (or have you made allowances for the difference) ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 rpvw, Dec 3, 2016
    Last edited: Dec 3, 2016
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @desbest,

    The final number in the cron job determines the day it runs. You can review the following page for more information about how this works:

    Cron - Wikipedia

    You can also review the /var/log/cron file to see a log of all cron activity on the system.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice