Script runs from command line, but not from cron

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content