Darryl Gregorash wrote:
On 2006-11-03 04: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. OK, I am missing something. That syntax is not in my "man 5 crontab"; where might I find some documentation that is more up-to-date?
It is there, but mentioned only in passing: The format of a cron command is very much the V7 standard, with a number of upward-compatible extensions. Each line has five time and date fields, followed by a user name if this is ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the system crontab file, followed by a command. ^^^^^^^^^^^^^^^^^^^^^^^^^ That's lines 50ff in 10.0 man page. HTH, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany