On Wed, 13 Jul 2011 22:55:24 +0000, Stefan Sperling wrote:
...
> Try setting the environment variable in your crontab instead.
> Put this in your crontab:
> 
>   LC_ALL=en_US.UTF-8
>   * * * * * /root/test >> /var/log/test.log 2>&1
> 
> I think that should work. Most cron programs support setting environment
> variables like this.

And if they don't something along

  * * * * * /usr/bin/env LC_ALL=en_US.UTF-8 /root/test >> /var/log/test.log 2>&1

should do the trick. Also, then you are sure it only affects this line.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

Reply via email to