one hour cron

Status
Not open for further replies.

damaged-city69

New Member
Messages
10
Reaction score
0
Points
0
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
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Make sure that no crons are running within 5 min from one another.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
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
 
Status
Not open for further replies.
Top