Environment and registry variables
Each operating system and shell has its own syntax for setting
environment variables. The following table shows how to set the P4CLIENT
environment variable on
various systems:
OS or Shell | Environment Variable Example |
---|---|
UNIX: bash, |
|
UNIX: csh |
|
Mac OS X ( |
|
Windows |
Windows administrators running
Helix Server
as a service can set variables for use by a specific service with
(See the |
You may use $home
to set environment variables. For
example:
P4IGNORE=$home/myignorefile
$home is expanded to the path of the user’s home
directory. The user’s home directory is taken to be the value of the
HOME
environment variable or of USERPROFILE
on Windows.
Helix Server’s environment variables can be grouped into the following four categories:
Type | Description | Name |
---|---|---|
crucial | must be set on the client and default values are rarely sufficient | |
useful | can provide additional functionality to the user | P4CONFIG
|
server | set by the administrator for users or applications | P4AUDIT
|
esoteric | default value is sufficient |
Although these environment variables are not listed in the Configurables chapter, these environment variables are also "configurables" in the sense that they can be set by using the p4 configure command. The two exceptions are P4JOURNAL
and P4ROOT
.