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.

Crons at the end of each month?

Discussion in 'General Discussion' started by stormx, Sep 1, 2008.

  1. stormx

    stormx Registered

    Joined:
    Jan 9, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I was wondering if it's possible to go off the cPanel cron time table and set a cron to run on the 59th second of the 59th minute of the last day of the month.

    Is it possible, even including month's with different ending dates like the difference between Feb and June.

    Is it possible, and how do I do it?

    Cheers.
     
  2. yolau

    yolau Active Member

    Joined:
    Sep 1, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    I don't see how it can be done, but your best bet would be to run the cron on the 1st of each month at 00:00.
    This way you would be off just by a second :)
     
  3. stormx

    stormx Registered

    Joined:
    Jan 9, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    That would actually be also beneficial, what would I have to set my cron on to do that?

    Cheers.
     
  4. rrwh

    rrwh Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    "man 5 crontab" and learn how for yourself.
     
  5. stormx

    stormx Registered

    Joined:
    Jan 9, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    In advanced crontab what would I put in for the values to run it on the 1st of the month?
     
  6. yolau

    yolau Active Member

    Joined:
    Sep 1, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    The values would be:
    0 0 1 * *
     
Loading...

Share This Page