Help with a cron entry please

Commissario
Joined
16 Oct 2002
Posts
343,284
Location
In the radio shack
Hi folks,

I need to run two commands via cron. The first one needs to run once an hour, on the hour and that should be easy enough.

Code:
0 * * * *

The second one isn't quite so simple though - It needs to run every ten minutes, at xx:10, xx:20, xx:30, xx:40 and xx:50

So it's not every ten minutes continually as it won't run on the hour at xx:00.

I don't have a linux box in front of me to test this on, I'll be doing it at the remote site (still haven't been able to sort out remote access) so need to get it right first time.

Can anyone assist please?

Thanks.
 
I just put in cron checker in google and got a few... but here's one:

http://cron.schlitt.info/

Output of dekez cron definition over 20 iterations:

CRON tester
CRON definition
10,20,30,40,50 * * * *

Iterations
Test
Given the CRON job starting at 2015-10-04 06:52:44 (now), it would run:

2015-10-04 07:10:00
2015-10-04 07:20:00
2015-10-04 07:30:00
2015-10-04 07:40:00
2015-10-04 07:50:00
2015-10-04 08:10:00
2015-10-04 08:20:00
2015-10-04 08:30:00
2015-10-04 08:40:00
2015-10-04 08:50:00
2015-10-04 09:10:00
2015-10-04 09:20:00
2015-10-04 09:30:00
2015-10-04 09:40:00
2015-10-04 09:50:00
2015-10-04 10:10:00
2015-10-04 10:20:00
2015-10-04 10:30:00
2015-10-04 10:40:00
2015-10-04 10:50:00


Looks correct to me :)
 
Back
Top Bottom