This topic created in 3238 days ago, the information mentioned may be changed or developed.
新人一枚,刚弄了个 vps。有两个脚本。
a 脚本想每月的奇数天 1 点执行,b 脚本想每月的偶数天 1 点执行。
是不是这样写:
* 1 1-31/2 * * /dir/a.sh
* 1 2-31/2 * * /dir/b.sh 或者* 1 2-30/2 0* * /dir/b.sh
3 replies • 2017-06-18 18:35:27 +08:00
 |
|
1
hpeng Jun 18, 2017 via iPhone 1
crontab 每天执行,脚本判断奇偶
|
 |
|
3
rrfeng Jun 18, 2017 via Android
*/2 就可以了
|