标签:
<1>如何查看自己的计划任务是否成功的执行?
root@i175 ~]# tac /var/log/cron
Jul 20 17:01:01 i175 run-parts(/etc/cron.hourly)[9601]: finished 0anacron
Jul 20 17:01:01 i175 run-parts(/etc/cron.hourly)[9592]: starting 0anacron
Jul 20 17:01:01 i175 CROND[9592]: (root) CMD (run-parts /etc/cron.hourly)
Jul 20 16:01:01 i175 run-parts(/etc/cron.hourly)[20253]: finished 0anacron
Jul 20 16:01:01 i175 run-parts(/etc/cron.hourly)[20244]: starting 0anacron
gentoo==>
d237 spool # ls /var/spool/
cron mail
d237 spool # cat /var/spool/cron/crontabs/root //计划任务的内容.
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXX8f7tvU installed on Mon Feb 25 09:33:36 2013)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#* */1 * * * /etc/init.d/ntp-client restart
[root@i175 ~]# ls /var/spool/
anacron cron lpd mail plymouth postfix
[root@i175 ~]# ls /var/spool/cron/ //gentoo一样
标签:
原文地址:http://www.cnblogs.com/itcomputer/p/4662117.html