Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



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 in each OS and shell:
UNIX: ksh, sh, bash
P4CLIENT=value ; export P4CLIENT
UNIX: csh
Mac OS X (bash)
P4CLIENT=value ; export P4CLIENT
Windows administrators running Perforce as a service can set variables for use by a specific service with p4 set -S svcname var=value, or set variables for all users on the local machine with p4 set -s var=value.
(See the p4 set command for more details on setting Perforce's registry variables in Windows).
Perforce's environment variables can be loosely grouped into the following four categories:
Crucial: The variable must almost always be set on the client; default values are rarely sufficient. Understanding these variables is crucial for users and administrators alike.
Useful: Setting this variable can provide additional functionality to the user, but is not required for most Perforce operations.
Esoteric: The default value of this variable is normally sufficient; it rarely needs to be changed.
Server: The variable is set by the Perforce system administrator on the machine running the Perforce server. Some of these variables are used by Perforce clients as well; in these cases, the variable is listed twice.


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.