Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

NOTE: I'm a big newbie when it comes to *nix.

I have a cron configuration that runs several programs. Most of them run once a day, and they're set at different times (2AM, 3AM, 4AM, etc) so they don't run all at the same time.

Now, I have a process that runs every 10 minutes, that always runs really fast (around 6 seconds), and it's getting "overlapped" with the 2AM, 3AM, 4AM, processes.

It's currently configured like this:

*/10 * * * * /home/blahblah

and it runs at 0, 10, 20, 30, 40, 50 minutes.

Would it be possible to have it run at "not 0", but displaced, for example, 5 minutes? Thus, it'd run at 5, 15, 25, 35, 45, 55 instead. Something like "*/10+5" if you will.

The idea is to simply avoid this process running at the same time as the ones that run at :00 minutes, and to still have it run approximately every 10 minutes.

Any ideas?

Thanks!
Daniel

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You'd have to do this in your crontab:

5,15,25,35,45,55 * * * * /home/blahblah

That first part tells it to run at 5,15,...,45,55 minuites every hour of ever day of every month of every year

share|improve this answer
    
Thank you _____________________ –  Daniel Magliola Jul 16 '10 at 3:22

DUH, just found it...

8,18,28,38,48,58 * * * * /home/blahblah

Sorry about that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.