Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have the problem, that I am trying to automate some Informix database job via the crontab.
The job runs fine when done via the command line or processed via the at queue, but not via the crontab. The informix error "-23191 Unable to load locale categories" might indicate that the locale is not set.
How do I set the locale for cron jobs?

share|improve this question

1 Answer 1

The locale is usually inferred by the LANG and LC_* environment variables, so try setting these in the crontab itself. For example:


0 * * * *   nobody
share|improve this answer
Tried it, but it did not work yet. –  weismat Aug 14 '12 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.