How to set up cron trigger time rule every 5 mins + 2mins delay?

In Microsoft Azure, this runs the script every 5 mins: "0 */5 * * * *"

I thought i will run another script every 5 mins plus 2 mins with rule: "0 */7 * * * *" but then i realized i made a mistake (0,5,10,15 vs 0,7,14,21) that's not 0,7,12,17 what i wanted.

How should i do that? PS: dont want to start at 0, so i guess i will have to add 1/X not 0/X in minutes field.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer

-1
задан 20 August 2017 в 21:53
1 ответ

Вы не говорите, какая версия cron , но в Vixie cron (используется в BSD и GNU / Linux) вы можете указать либо:

2-57/5 * * * * (command)

, либо произнести

2,7,12,17,22,27,32,37,42,47,52,57 * * * * (command)
3
ответ дан 5 December 2019 в 19:12

Теги

Похожие вопросы