Where To Set Environment Variables For Crontab Job Tecadmin
The Debian-based systems use the vixie-cron its replacement mcron system, which allows declaring environment variables in the crontab file. For example: LANG=nb_NO.UTF-8 LC_ALL=nb_NO.UTF-8 * * * * * echo “Hello world"1234LANG=nb_NO.UTF-8LC_ALL=nb_NO.UTF-8 * * * * * echo “Hello world” The RedHat and Arch Linux systems use cronie that uses standard Unix crond daemon. This doesn’t allow for the declaration of environment variables in the crontab file. But, we can still use this with the crontab per entry: * * * * * export LC_ALL=nb_NO....