Software Distributor Administration Guide for HP-UX 11i
Using Control Scripts
Using Environment Variables
Chapter 11 381
Using Environment Variables
All control scripts are invoked as the superuser and executed by the
agent process. HP-UX provides environment variables that affect SD-UX
commands and scripts. These variables fall are catgorized as follows:
• Variables that affect all SD-UX commands.
• Variables that affect all SD-UX scripts.
• Variables that affect swinstall and swremove.
Variables That Affect All SD-UX Commands
LANG
• This external variable applies to all SD commands except
install-sd.
• Determines the language in which messages are displayed. If LANG is
not specified or is set to the empty string, a default value of “C” is
used.
• The language in which the SD agent and daemon log messages are
displayed is set by the system configuration variable script,
/etc/rc.config.d/LANG. For example, /etc/rc.config.d/LANG
must be set to “LANG=ja_JP.SJIS” or “LANG=ja_JP.eucJP” to make
the agent and daemon log messages display in Japanese.
You may also use the export LANG= command.
• See the lang(5) man page for more information.
LC_ALL
• Determines the locale used to override any values for locale
categories specified by the settings of LANG or any environment
variables beginning with LC_.
LC_CTYPE
• Determines the interpretation of sequences of bytes of text data as
characters (e.g., single-versus multibyte characters in values for
vendor-defined attributes).