- 论坛徽章:
- 0
|
*/1 * * * * echo `date`=== >>/tmp/test_date
cat /tmp/test_date
Thu Mar 7 02:12:01 CST 2013===
Thu Mar 7 02:12:01 CST 2013===
Thu Mar 7 02:12:01 CST 2013===
Thu Mar 7 02:13:01 CST 2013===
Thu Mar 7 02:13:01 CST 2013===
Thu Mar 7 02:13:01 CST 2013===
剩下的就略去了。。。
检查系统内进程。发现有3个。
# ps -ef| grep cron
root 1708 1 0 2012 ? 00:02:33 crond
root 5670 1 0 01:41 ? 00:00:00 crond
root 11151 1 0 Feb03 ? 00:00:31 crond crontab
root 25342 19893 0 02:24 pts/1 00:00:00 grep cron
系统内cron相关软件
# rpm -qa|grep cron
cronie-anacron-1.4.4-7.el6.x86_64
crontabs-1.10-33.el6.noarch
cronie-1.4.4-7.el6.x86_64
相关配置文件内容
# cat /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
# | | | | |
# * * * * * user-name command to be executed
|
|