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!

CronJob Question

Discussion in 'General Discussion' started by dct, Jun 5, 2006.

  1. dct

    dct Member

    Joined:
    Nov 24, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Hello,
    I have small cron job question. Problem is cron working everyday every
    hour. I want everyday only one time work.

    Here is my via ssh cron job. crontab -e

    3-58/5 * * * * /usr/local/bin/php -q -f /home/username/public_html/sales/include/bla.php /home/username/public_html/sales/ cron 0 1 >/dev/null 2>&1


    I think i must change this 3-58/5 * * * * but i dont know which code for everyday only one time work

    Thanks for help.
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    Google man cron for plenty of information
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    3-58/5 * * * * is going to run it at 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, and 55 minutes after every hour.

    To run it once/day, you want something like
    15 4 * * *
    which will run it at 4:15am every day.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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