Results 1 to 4 of 4

Thread: cron jobs problem in cPanel ???

  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    43

    Exclamation cron jobs problem in cPanel ???

    Hello,

    I have set cron to run in every five min. but the cron is executing after 1 second.

    ex..

    i have set on

    10.00
    10.05

    and it runs on

    10.00.01
    10.05.01

    Please guide me how can i solve this problem.

  2. #2
    BANNED
    Join Date
    Jun 2005
    Posts
    2,023

    Default

    The lowest interval for crontab is a minute ...

    You are seeing "1" second logged because that is the time it took
    for your script to start executing and that execution get logged.

    Your crons are actually firing off correctly based on what you quoted.

  3. #3
    Member
    Join Date
    Jun 2008
    Posts
    43

    Default

    Hi Spiral,

    Thanks for your reply...

    Yes you are right but i want to that cron at fix time , it means 10.00.00 not on 10.00.01 so please guide me how can i do this....

    Thank you.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Posts
    2,023

    Default

    If it takes 1 second for your script to run, you need to run it 1 second early ...

    Subtract 1 minute from the scheduled running time ...

    Put in a "sleep 58" or "sleep 59" line in the top of your cron script
    to have it wait almost a full minute before continuing processing
    and you may have to play around with it a bit, but you may be
    able to time it such that your script finishes running at the
    exact time that you want.

Similar Threads

  1. Cron Jobs problem ?
    By map007 in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 07-28-2009, 01:38 PM
  2. Problem in Cron Jobs
    By bluelobs in forum New User Questions
    Replies: 1
    Last Post: 05-08-2008, 09:04 AM
  3. cPanel cron jobs or cron.daily , cron.hourly , etc.?
    By spaceman in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 01-01-2004, 07:16 PM
  4. cpanel cron jobs gone
    By carperman in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 02-20-2003, 08:55 AM