Perforce 2002.1 Command Reference
<< Previous Chapter
p4 where
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4CHARSET

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:

OS or Shell
Environment Variable Example

UNIX: ksh, sh, bash

P4CLIENT=value ; export P4CLIENT

UNIX: csh

setenv P4CLIENT value

VMS

def/j P4CLIENT "value"

Mac MPW

set -e P4CLIENT value

Windows

p4 set P4CLIENT=value

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 chapter for more details on setting Perforce's registry variables in Windows).

Perforce's environment variables can be loosely grouped into the following four categories:


Perforce 2002.1 Command Reference
<< Previous Chapter
p4 where
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4CHARSET
Please send comments and questions about this manual to [email protected].
Copyright 1999-2002 Perforce Software. All rights reserved.
Last updated: 04/03/02