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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    327
    Likes Received:
    94
    Trophy Points:
    28
    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) ?
     
    #2 rpvw, Dec 3, 2016
    Last edited: Dec 3, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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!
     
Loading...

Share This Page