Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p4 login
- p4 set P4PORT=perforce:1669
- > p4 set P4PORT
- P4PORT=perforce:1669
- p4 -p <your port> login
- p4 set P4PORT=1666
- C:> p4 help environment
- Environment variables used by Perforce:
- Variable Defines For more information see
- -------- ------- ------------------------
- P4AUDIT name of server audit file p4d -h
- P4CHARSET client's local character set p4 help charset
- P4COMMANDCHARSET client's local character set for
- command line operations p4 help charset
- P4CLIENT name of client workspace p4 help client
- p4 help usage
- P4CONFIG name of configuration file Command Reference Manual
- P4DIFF diff program to use on client p4 help diff
- P4DIFFUNICODE diff program to use on client p4 help diff
- P4EDITOR editor invoked by p4 commands p4 help change, etc
- P4HOST name of host computer p4 help client
- p4 help usage
- P4JOURNAL name of server journal file p4d -h
- P4LANGUAGE language for text messages p4 help usage
- P4LOG name of server log file p4d -h
- P4MERGE merge program to use on client p4 help resolve
- P4MERGEUNICODE merge program to use on client p4 help resolve
- P4PAGER pager for 'p4 resolve' output p4 help resolve
- P4PASSWD user password passed to server p4 help passwd
- P4PORT port client connects to p4 help info
- or server listens on p4d -h
- P4ROOT server root directory p4d -h
- P4TARGET target server for proxy Command Reference Manual
- P4TICKETS location of tickets file Command Reference Manual
- P4USER user name p4 help usage
- PWD current working directory p4 help usage
- TMP, TEMP directory for temporary files Command Reference Manual
- See 'p4 help set' for details specific to Windows. The syntax for
- setting an environment variable depends on the OS/shell. Note that many
- shells allow the setting of shell variables separate from environment
- variables - Perforce cannot see the shell variable, only the environment
- variable.
- If you are a typical user then the only variables of interest are
- $P4CLIENT, $P4PORT and $P4PASSWD.
- C:> p4 help set
- set -- Set variables in the registry (Windows only)
- p4 set [ -s -S service ] [ var=[value] ]
- 'p4 set' sets the registry variables used by Perforce on Windows
- platforms. Normally, the variable 'var' is set to 'value'.
- If 'value' is missing, the variable 'var' is unset. Without
- any arguments at all, 'p4 set' list variable settings.
- The -s flag causes 'p4 set' to set variables for the whole system
- rather than for the user. You must have NT administrator powers
- to use this.
- The -S service flag causes 'p4 set' to set variables for the named
- service. You must have NT administrator powers to use this.
- Currently, registry variable entries may be overridden by environment
- variables and (in some cases) flags on the command line.
- See 'p4 help environment' for a list of environment/registry variables.
- P4PORT=hostname:1234
- p4 set P4CONFIG=.p4config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement