Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)
11.4.1.2 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_.
11.4.1.3 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).
11.4.1.4 LC_MESSAGES
• Determines the language in which messages should be written.
11.4.1.5 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.
11.4.1.6 TZ
• Determines the time zone for use when displaying dates and times.
11.4.2 Variables That Affect All SD-UX Scripts
11.4.2.1 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.)
11.4.2.2 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
11.4.2.3 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.
11.4.2.4 SW_LOCATION
214 Using Control Scripts