Open System Services Management and Operations Guide (G06.29+, H06.07+)

Managing With the Shell
Open System Services Management and Operations Guide527191-005
9-5
Localizing Software
Using the /etc/profile File Instead of a motd Command
You can also use the /etc/profile file to send a message to all users when they
log in. You can inform them of new features, projected downtime, or any other matter
that you think they should know. To do so, include a line in the /etc/profile file
such as:
echo "message"
where message is the message you want to send. You must include the quotation
marks.
If this command line is in the /etc/profile file, then each time a user logs in to the
OSS environment, the echo command is executed and the message appears on the
users terminal.
Localizing Software
You can use the localization environment variables in:
An /etc/profile file to customize the behavior of all compatible applications
launched from an OSS shell for a specific locale
A default .profile file to customize the behavior of all compatible applications
launched from a specific user’s OSS shell for a specific locale
You can use a different locale value for each environment variable in either file. The
values for these variables are inherited by all the child processes for that shell.
The localization environment variables are listed in Table 9-1 on page 9-5, along with
their meanings and default values.
The version of the OSS shell released by HP fully supports only the default C locale.
That is, HP does not provide message catalogs for OSS shell commands and utilities
when nondefault locales are used. Nondefault values for localization environment
variables should be used only after testing.
Table 9-1. Localization Environment Variables (page 1 of 2)
Variable Meaning and default
LANG The locale of your shell, which consists of a language, territory, and
code set.
The default locale is the C locale.
The default language is English.
The default territory is US.
The default code set is ASCII.
LC_ALL The behavior for all aspects of the locale, unless overridden by
another variable.
LC_COLLATE The collating sequence. The default value is C/POSIX.
LC_CTYPE The character classification information. The default value is
C/POSIX.