[BlueOnyx:07890] Re: BlueOnyx 5107R Beta - swatch warning

Steven Howes steve-lists at geekinter.net
Thu Jul 28 07:58:39 -05 2011


On 28 Jul 2011, at 13:46, Steven Howes wrote:
> On 28 Jul 2011, at 11:49, Steven Howes wrote:
>> Interestingly, running '/usr/sbin/swatch -c /etc/swatch.conf' from the command line doesn't produce the error..
> 
> 
> So it looks like it's not getting the environment. Will try doing stuff...

Replying to myself again - probably bad etiquette..

[root at nunsuch sbin]# cat /etc/cron.d/swatch.cron 
# swatch is the system watcher
*/15 * * * *    root    /usr/sbin/swatch.sh

[root at nunsuch sbin]# cat /usr/sbin/swatch.sh 
#!/bin/bash
export LANG=en_US
export LC_ALL=en_US.UTF-8
export LINGUAS="en_US ja da_DK de_DE"
/usr/sbin/swatch -c /etc/swatch.conf


Does fix it, but it's more than a little hacky. Perhaps someone with a bit more experience with using environment variables with Perl might be able to provide a real solution..

S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20110728/be0b64cd/attachment.html>


More information about the Blueonyx mailing list