Software Distributor (SD-UX) Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (762797-001, March 2014)

Table Of Contents
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).
LC_MESSAGES
Determines the language in which messages should be written.
LC_TIME
Determines the format of dates (create_date and mod_date) when displayed by swlist.
Used by all utilities when displaying dates and times in stdout, stderr, and logging.
TZ
Determines the time zone for use when displaying dates and times.
Variables That Affect All SD-UX Scripts
SW_CATALOG
Holds the path to the Installed Products Database (IPD), relative to the path in the
SW_ROOT_DIRECTORY environment variable. (You can specify a path for the IPD using the
installed_software_catalog default option.)
SW_CONTROL_DIRECTORY
Defines the full pathname to the directory containing the script. This tells other scripts where
other control scripts for the software are located (subscripts, for example).
Also contains the response file generated by a request script. Other scripts that reference the
response file access the file by referencing this variable.
The directory is either a temporary catalog directory, or a directory within in the Installed
Products Database (IPD).
Here is an example of sourcing:
. ${SW_CONTROL_DIRECTORY}subscript
grep something ${SW_CONTROL_DIRECTORY}datafile
SW_CONTROL_TAG
Holds the tag name of the control_file being executed. When packaging software, you
can define a physical name and path for a control file in a depot. This lets you define the
control_file with a name other than its tag and lets you use multiple control_file
definitions to point to the same file. A control_file can query the SW_CONTROL_TAG
variable to determine which tag is being executed.
SW_LOCATION
208 Using Control Scripts