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.

question about a cron job

Discussion in 'General Discussion' started by bsasninja, Jul 22, 2005.

  1. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    16
    Can anybody help me with this, I need to run a cron job in the crontab but i dont know how to do it.

    Must run monday, wensday and friday every 5 hours every 5 minutes.

    Thanks.
     
  2. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    i d suggest to go into your domains cPanel and set your cron there ;)
     
  3. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    16
    yes

    i know how to do it my question is what i have to put in the * * * * * * /myscript to run it at the time I specified above.
     
  4. Dacsoft

    Dacsoft Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Florida
    * * * * * /script or command to be executed
    - - - - -
    | | | | |
    | | | | +----- day of week (1 - 7) (monday = 1)
    | | | +------- month (1 - 12)
    | | +--------- day of month (1 - 31)
    | +----------- hour (0 - 23)
    +------------- min (0 - 59)

    SO
    */5 */5 * * 1,3,5 /script or command to be executed
     
Loading...

Share This Page