Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    695
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Sydney / Australia
    i d suggest to go into your domains cPanel and set your cron there ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bsasninja

    bsasninja Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    528
    Likes Received:
    0
    Trophy Points:
    166
    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:
    156
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice