Closed Thread
Results 1 to 4 of 4

Thread: one hour cron

  1. #1
    damaged-city69 is offline x10Hosting Member damaged-city69 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    10

    one hour cron

    hi guys actually i set up one five min crom
    and then
    one 10 min cron
    and than
    one 15 min cron
    and than
    directly 1 hour cron

    so is it ok that from 15 min to one hour

  2. #2
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: one hour cron

    Make sure that no crons are running within 5 min from one another.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: one hour cron

    Your set up will not work.
    5 minute and 10 minute will always conflict. As will the 15 minute and 10 minute. etc.

    If you know what you are doing, make one script with an info file that stores a number.
    Retrieve and update number every time script is run.
    Always do your 5 minute stuff.
    Number even, do your 10 minute stuff.
    Number divisible by 3, do your 15 minute stuff.
    Number divisible by 12, do your 1 hour stuff.

    That way you only have one cron job. Run every 5 minutes.
    Nothing is always absolutely so.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,505

    Re: one hour cron

    You can also specify more specific run times for each job using "," for a set of times, "-" for a range, and "/" to skip intervals. See the X10 Wiki article on cron jobs for more info and samples. In this particular case, "," is what will be of most use.

    Code:
    5,25,35,55  * * * * /home/username/periodic/5m
    10,20,40,50 * * * * /home/username/periodic/10m
    15,30,45    * * * * /home/username/periodic/15m
    0           * * * * /home/username/periodic/hourly
    Or (just to obfuscate things a bit):

    Code:
    5/30,25/30  * * * * /home/username/periodic/5m
    10/30,20/30 * * * * /home/username/periodic/10m
    15-45/15    * * * * /home/username/periodic/15m
    0           * * * * /home/username/periodic/hourly
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

Closed Thread

Similar Threads

  1. 3 suspensions in 1 hour?
    By scylla in forum Free Hosting
    Replies: 1
    Last Post: 01-20-2010, 12:10 PM
  2. Replies: 6
    Last Post: 11-14-2009, 06:38 PM
  3. Replies: 1
    Last Post: 10-04-2008, 10:47 AM
  4. [cron problem]php-cron command not found
    By N4rk0 in forum Free Hosting
    Replies: 1
    Last Post: 01-31-2008, 11:51 AM
  5. $521.05 in 1 hour !
    By admintwo in forum Earning Money
    Replies: 5
    Last Post: 01-03-2008, 05:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers