Quantcast
Channel: User Daniel Magliola - Server Fault
Viewing all articles
Browse latest Browse all 35

Linux Cron: Can I displace the runtime by "x" minutes?

$
0
0

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


Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>