<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 28 Jul 2011, at 13:46, Steven Howes wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 28 Jul 2011, at 11:49, Steven Howes wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Interestingly, running '<span class="Apple-style-span" style="font-size: 12px; "><b>/usr/sbin/swatch -c /etc/swatch.conf'</b> from the command line doesn't produce the error..</span></div></div></blockquote></div><div><span class="Apple-style-span" style="font-size: small; "><span class="Apple-style-span" style="font-size: medium;"><br></span></span></div><div><span class="Apple-style-span" style="font-size: small; ">So it looks like it's not getting the environment. Will try doing stuff...</span></div></div></blockquote><br></div><div>Replying to myself again - probably bad etiquette..</div><div><br></div><div><div>[root@nunsuch sbin]# cat /etc/cron.d/swatch.cron </div><div># swatch is the system watcher</div><div>*/15 * * * *    root    /usr/sbin/swatch.sh</div><div><br></div><div>[root@nunsuch sbin]# cat /usr/sbin/swatch.sh </div><div>#!/bin/bash</div><div>export LANG=en_US</div><div>export LC_ALL=en_US.UTF-8</div><div>export LINGUAS="en_US ja da_DK de_DE"</div><div>/usr/sbin/swatch -c /etc/swatch.conf</div><div><br></div><div><br></div><div>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..</div><div><br></div><div>S</div></div></body></html>