3 Nov
2006
3 Nov
'06
15:07
On Fri, 03 Nov, 2006 at 04:11:57 -0600, Darryl Gregorash wrote:
On 2006-11-02 22:16, Fajar Priyanto wrote:
Hello friends, 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 I am sure you cannot set an environment variable this way.
On 9.3 it's very much possible to set a variable that way, to wit; # MRTG: Entry for self temp; */5 * * * * env LANG=C /usr/bin/mrtg /etc/mrtg/self_tens.conf >/dev/null 2>&1 - which has been running for... dunno exactly... but months, at least
You *can* do this:
LANG=C <cron command>
This I wasn't aware of, though. /Jon -- YMMV