Script runs from command line, but not from cron
Issue
- An ftp script running on RHEL 4 Update 8 runs from the command line, but has an error that it is unable to find a license file when run from cron.
-
The ftp client vendor says the following environment variables when added to the cron script corrects the issue when running under Solaris
-
LC_COLLATE=en_US.ISO8859-1
-
LC_MESSAGES=C
-
LC_MONETARY=en_US.ISO8859-1
-
LC_NUMERIC=en_US.ISO8859-1
-
LC_TIME=en_US.ISO8859-1
-
Environment
- Red Hat Enterprise Linux 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
