I need to make sure that a file is delivered every 10 minutes. It always arrives 5 seconds after the top of the 10 min mark (6:00:05, 6:10:05... 6:50:05, 7:00:05 etc.) between 6am-3pm on weekdays.
This is the closest thing I've been able to come up with
*/11 6-15 * * 1-5
I can't use */10 because the file arrives 5 seconds after the 10 minute marks, so I used 11 and set the time range as 5 minutes so that last run of the hour catches the XX:50:05 file. The problem is that this solution always misses the first file that arrives at the top of the hour (XX:00:05) since it runs every 11 minutes. For whatever reason, at the beginning of each hour it runs immediately but then misses the first file since the file arrives 5 seconds later.
Can anyone think of a better solution or do I just have to create a second alert for those top-of-the-hour files? I can't seem to find a way to delay the search by a few seconds. And how can I mute the erroneous triggers from the first alert?
The cron form */11 says to run at minute zero and every 11 minutes until minute 59. To run at minute 1 and every 10 minutes after that, use this expression.
1,11,21,31,41,51 6-15 * * 1-5
The cron form */11 says to run at minute zero and every 11 minutes until minute 59. To run at minute 1 and every 10 minutes after that, use this expression.
1,11,21,31,41,51 6-15 * * 1-5
Try this
1-59/11 6-15 * * 1-5