Fajar Priyanto wrote:
On Friday 03 November 2006 17:06, Joachim Schrod wrote:
Fajar Priyanto wrote:
Is it possible to run cron like this? */5 8-16 * * 1-6 env LANG=C /usr/bin/mrtg /etc/mrtg.cfg >> /var/log/mrtg/mrtg.log
It seems that it's not running.
If it's a personal crontab, it's OK. If it's a system-wide crontab (i.e., /etc/crontab or one in /etc/cron.d), then the user is missing in front of env.
How about the */5 8-16 * * 1-6 ? Is it ok?
Yes. You wrote that it does not run. Is there an entry in /var/log/messages? Which user runs the command? Does crontab -l output that line, without any newline inbetween? (I suppose that the newline above was inserted by your mail agent and that it is not in the original file.) Can that user receive email or did you set the MAILTO variable in crontab? Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany