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 Timing Question....

Discussion in 'General Discussion' started by Nhojohl, Apr 5, 2007.

  1. Nhojohl

    Nhojohl Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    I'm a little curious when cron jobs are set at intervals how CentOS would determine what the start day was....

    What I'm trying to do is have a 10 day cron job ran every day at say around.... 8PM EST. My server time zone is set as -500 EST.

    If I were to add my cronjob at 8PM EST on the dot today, would it be ran 10 days from now at 8PM EST or be ran 10 days from some internal start time determined on the server?
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    What's your cron entry look like? IOW, how are you scheduling it?
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If you put */10 for the days, it'll run every month on the 10th, 20th, and 30th, except February.
    If you put 3,13,23 for the days, it'll run the 3rd, 13th, and 23rd of every month.

    I don't think there is a way to schedule it to go every 10th day from when it starts.
     
  4. Nhojohl

    Nhojohl Well-Known Member

    Joined:
    Nov 28, 2006
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Awesome, that's cool. :)
     
Loading...

Share This Page