R
R
Roman Buns2014-11-01 01:49:56
Task Schedulers
Roman Buns, 2014-11-01 01:49:56

How to run crone job every other day?

Tell me what to write in Crone here: prntscr.com/51rig3 so that the script runs every other day? Preferably after midnight.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neolink, 2014-11-01
@neolink

this cannot be done purely by means of the crown due to the different number of days in the month, you will have the same as now with the days of the week.
you can write several rules for 30 and 31 day months, but the big February will get in the way early,
so if the period is critical for you, run it once a day and count in the script how much has passed since the previous run

D
Dmitry, 2014-11-01
@zmeyjr

30 1 */2 * * - will be executed on even numbers
30 1 1-31/2 * * - on odd numbers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question