| | .--- 日 day of month (1 - 31) | | | .--- 月 month (1 - 12) OR jan,feb,mar,apr,may,jun,jul,aug,sept,oct,nov,dec | | | | .--- 周 day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | | | | | .--- 执行的命令或程序 | | | | ...
wq ## --- /var/log/cron 的记录如下: [root@localhost ~]# tail /var/log/cron Oct 19 11:50:01 localhost crond[599]: (*system*) RELOAD (/etc/crontab) Oct 19 11:50:01 localhost crond[599]: (CRON) bad day-of-month (/etc/crontab) ## 提示 bad day-of-month 日期有问题 [root...
crontab: installing new crontab"/tmp/crontab.tEoCzO":2: bad day-of-month errorsincrontabfile, can't install.Do you want to retry the same edit?Enter Y or N 1. 2. 3. 4. 5. 当我编辑crontab后保存时,crontab文件出现错误错误,不能保存,提示Do you want to retry the same edit?(是否要重...
crontab: installing new crontab"/tmp/crontab.tEoCzO":2: bad day-of-month errorsincrontabfile, can't install.Do you want to retry the same edit?Enter Y or N 当我编辑crontab后保存时,crontab文件出现错误错误,不能保存,提示Do you want to retry the same edit?(是否要重试相同的编辑?) 这种情况...
01SHELL=/bin/bash 02PATH=/sbin:/bin:/usr/sbin:/usr/bin 03MAILTO=root 04HOME=/ 05# For details see man 4 crontabs 06# Example of job definition: 07# .- minute (0 59) 08# | .- hour (0 23) 09# | | .- day of month (1 31) 10# | | | .- month (1 ...
minute hour day-of-month month-of-year day-of-week commands 合法值 00-59 00-23 01-31 01-12 0-6 (0 is sunday) 除了数字还有几个个特殊的符号就是“*”、“/”和“-”、“,”,*代表所有的取值范围内的数字,“/”代表每的意思,“/5”表示每5个单位,“-”代表从某个数字到某个数字,“,”...
Finally I have also seen Linux professionals or beginners doing a mistake assuming month section as days of month section and will use any value greater that 12 resulting in "bad day-of-month errors in crontab file can't install" error. Here you need to be very careful in understanding ...
crontab 配置文件 1 SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # .———- minute (0 – 59) # | .———- hour (0 – 23) # | | .———- day of month (1 – 31) # | | | .——- month (1 – 12) OR jan,feb,mar,apr … # | | | | ...
| | .---day of month (1 - 31)表示日期 | | | .--- month (1 - 12) ORjan,feb,mar,apr ...表示月份 | | | | .--- day of week (0 - 6) (Sunday=0 or 7) ORsun,mon,tue,wed,thu,fri,sat表示星期(0或7表示星期天) | | | | | .-...
day:表示日期,可以是从1到31之间的任何整数。 month:表示月份,可以是从1到12之间的任何整数。 week:表示星期几,可以是从0到7之间的任何整数,这里的0或7代表星期日。 command:要执行的命令,可以是系统命令,也可以是自己编写的脚本文件。 在以上各个字段中,还可以使用以下特殊字符 星号():代表所有可能的值,例如...