Running Cron Jobs Every 2 Days

Discussion in 'PHP' started by mark84, Oct 29, 2010.

  1. #1
    Hi,

    I have a php script that i want to run every 2 days. Heres what i wrote in crontab -

    59 23 */2 * * /root/scripts/somescript.sh

    Is this correct ?

    Let me know. Thanks.
     
    mark84, Oct 29, 2010 IP
  2. Blue Link Media

    Blue Link Media Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, it is correct - just don't forget that if you have 31 days, there'll be a 1 day delay ( 30 - ok, 31 - skip, 1 - skip, 2 - ok, .. ).
     
    Blue Link Media, Oct 30, 2010 IP
  3. mark84

    mark84 Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Got it, Thnx. its working.
     
    mark84, Oct 30, 2010 IP