|
我的crontab文件:
-su-2.05b# less /etc/crontab
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday who command
#
*/5 * * * * root /usr/libexec/atrun
*/5 * * * * root /bin/mrtg.sh
#update the Virus data file
#0 */12 * * * root /usr/local/libexec/uvscan/update.sh
# Save some entropy so that /dev/random can re-seed on boot.
*/11 * * * * operator /usr/libexec/save-entropy
# Rotate log files every hour, if necessary.
0 * * * * root newsyslog
/etc/crontab (END)
我的cron日志:
-su-2.05b# less cron
Sep 12 14:19:00 www /usr/sbin/cron[4435]: (*system*) RELOAD (/etc/crontab)
Sep 12 14:20:00 www /usr/sbin/cron[28039]: (root) CMD (/bin/mrtg.sh)
Sep 12 14:20:00 www /usr/sbin/cron[28040]: (root) CMD (/usr/libexec/atrun)
Sep 12 14:22:00 www /usr/sbin/cron[28050]: (operator) CMD (/usr/libexec/save-entropy)
#########################
注意上面红色的部分,是我需要的,下面的日志显示也已经执行了,可是真实的情况当我查看mrtg的时候,并不是那样的.
我在shell下面直接执行:/bin/mrtg.sh是可以的.
想询问有谁遇到过这样的问题?或许是什么地方出错了?给个提示.谢谢.
附我的mrtg.sh:
-su-2.05b# less /bin/mrtg.sh
#!/bin/sh
mrtg /usr/local/etc/mrtg/packet-mrtg.cfg
/bin/mrtg.sh (END) |
|