pubby
2013-10-23 20:29:25 +08:00
写法没错的
个人碰到过crontab唯一坑的地方是
day of month 和 day of week都指定的话,是任意一个满足就会执行,而不是两个都满足才执行。
Note: The day of a command's execution can be specified by two fields —
day of month, and day of week. If both fields are restricted (ie, are
not *), the command will be run when either field matches the current
time. For example, ``30 4 1,15 * 5'' would cause a command to be run at
4:30 am on the 1st and 15th of each month, plus every Friday.