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.

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:
    1
    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:
    36
    Google man cron for plenty of information
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page