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 every other day?

Discussion in 'General Discussion' started by welo, Sep 22, 2005.

  1. welo

    welo Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Someone asked me how to do this and I dunno what to tell them. Seems like it should be theoretically possible. If you can set one to run every other minute, then the mechanics of running one every other day/week/month should be similar. Anyone know how?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    0 3 */2 * * /commandyouwantorun

    above will run at 3:00 AM every 2 days

    see below for waht the numbers mean

    Minute Hour Day Month Weekday
    1st 2nd 3rd 4th 5th
     
    #2 dalem, Sep 22, 2005
    Last edited: Sep 22, 2005
  3. astopy

    astopy Well-Known Member

    Joined:
    Apr 3, 2003
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    No, that'll run at 03:00 on the 2nd of every month. Something like "0 3 */2 * * command" is what you'll need.
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    thanks edit post above to correct syntax
     
  5. welo

    welo Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    That's the ticket. Thanks guys.
     
Loading...

Share This Page