是当时生效后每隔三天吗?还是每月1号起,每隔三天?
ringa_lee
Neither of the first two answers is accurate:
crontab are as follows:
crontab
分钟 (0-59) 小时 (0-23) 日期 (1-31) 月份 (1-12) 星期 (0-6) // 0 代表星期天
If you write:
0 0 */3 0 0 xxx.sh
This is not strictly three days. This will be executed on the 1,4,7,10,13,16,19,22,25,28,31 day of each month. For details, please see: https://segmentfault.com/q/1010000002402396/a-1020000002402524
1,4,7,10,13,16,19,22,25,28,31
The first execution will start from 0:00 the next day and 72 hours later
You understand it as every 72 hours
The correct answer upstairs, 分时日月周, depends on how you write it
分时日月周
Neither of the first two answers is accurate:
The value range and meaning of the five columns of numbers representing time incrontab
are as follows:If you write:
This is not strictly three days. This will be executed on the
1,4,7,10,13,16,19,22,25,28,31
day of each month. For details, please see: https://segmentfault.com/q/1010000002402396/a-1020000002402524The first execution will start from 0:00 the next day and 72 hours later
You understand it as every 72 hours
The correct answer upstairs,
分时日月周
, depends on how you write it