level 1
sdbvdfnfg
楼主
在redhat5.4中 /etc/crontab 里面的配置内容 和 redhat6.4 /etc/crontab 里面的东西不一样。
为什么区别这么大了,如下:
###################################################################
redhat5.4 /etc/crontab 文件如下:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts/etc/cron.hourly
02 4 * * * root run-parts/etc/cron.daily
22 4 * * 0 root run-parts/etc/cron.weekly
42 4 1 * * root run-parts/etc/cron.monthly
##################################################################
redhat6.4 /etc/crontab 文件如下:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
redhat6.4 /etc/crontab 为什么里面没有配置 /etc/cron.hourly /etc/cron.daily 这些什么时候去执行??
2015年09月09日 01点09分
1
为什么区别这么大了,如下:
###################################################################
redhat5.4 /etc/crontab 文件如下:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts/etc/cron.hourly
02 4 * * * root run-parts/etc/cron.daily
22 4 * * 0 root run-parts/etc/cron.weekly
42 4 1 * * root run-parts/etc/cron.monthly
##################################################################
redhat6.4 /etc/crontab 文件如下:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
redhat6.4 /etc/crontab 为什么里面没有配置 /etc/cron.hourly /etc/cron.daily 这些什么时候去执行??