Open System Services Management and Operations Guide (G06.27+, H06.04+)
Managing With the Shell
Open System Services Management and Operations Guide—527191-003
9-4
Setting Up an /etc/profile File
UNIX methods so that the OSS environment uses values separate from those of the 
Guardian environment.
For example, the time values used by an OSS shell default to those of the system that 
the shell runs on. If you maintain an OSS environment for users in a time zone other 
than that used for your Guardian environment, you can add the TZ environment 
variable to /etc/profile to make the time zone for your OSS users appropriate to 
their location. The following entry would be appropriate for California users of a node 
located in New York City:
export TZ=:PST-8PDT-7,M4.5.0,M10.5.0
See the environ(5) reference page either online or in the Open System Services 
System Calls Reference Manual for the format of the TZ environment variable.
Controlling Reference Page Searches and Display
HP recommends setting the MANPATH environment variable in the /etc/profile 
file to /usr/share/man so that OSS reference pages can always be delivered to 
users by the man command, and so that the whatis and apropos commands work 
correctly for OSS information. Individual users can then set their .profile files to use 
other online reference material, such as that installed for some open source packages 
into the /usr/local/man directories.
Setting the MANPATH environment variable can be very important if your system has 
third-party or open source reference page (man page) source files in any of the 
/usr/local/man/man* directories but you have not installed an nroff utility. The 
OSS man command can call an nroff formatting tool to provide automatically 
formatted updates, even though the OSS shell product does not provide such a tool. 
When the MANPATH variable is not defined, the man command searches directories in 
the following order:
/usr/share/man/man*
/usr/local/man/man*
/usr/share/man/cat*
/usr/local/man/cat*
If the man command finds a source file in a /usr/share/man/man* directory that 
has the name a user is searching for as a formatted file provided by HP in 
/usr/share/man/cat*, the man command appears to fail with the error message:
Nroff/troff is not currently installed, this must be
installed in order to use formatted man pages.
HP does not currently ship unformatted source files in /usr/share/man/man*. 
However, if that set of directories is used, similar man command behavior occurs.
If you install open-source reference page source files in /usr/local/man/man*, you 
should install an open source formatter such as groff and create a symbolic link to it 
from the pathname /bin/nroff; the man command then successfully formats the 
source files and displays them for the user.










