Advertisement
Guest User

Untitled

a guest
May 15th, 2014
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. p4 login
  2.  
  3. p4 set P4PORT=perforce:1669
  4.  
  5. > p4 set P4PORT
  6. P4PORT=perforce:1669
  7.  
  8. p4 -p <your port> login
  9.  
  10. p4 set P4PORT=1666
  11.  
  12. C:> p4 help environment
  13.  
  14. Environment variables used by Perforce:
  15.  
  16. Variable Defines For more information see
  17. -------- ------- ------------------------
  18. P4AUDIT name of server audit file p4d -h
  19. P4CHARSET client's local character set p4 help charset
  20. P4COMMANDCHARSET client's local character set for
  21. command line operations p4 help charset
  22. P4CLIENT name of client workspace p4 help client
  23. p4 help usage
  24. P4CONFIG name of configuration file Command Reference Manual
  25. P4DIFF diff program to use on client p4 help diff
  26. P4DIFFUNICODE diff program to use on client p4 help diff
  27. P4EDITOR editor invoked by p4 commands p4 help change, etc
  28. P4HOST name of host computer p4 help client
  29. p4 help usage
  30. P4JOURNAL name of server journal file p4d -h
  31. P4LANGUAGE language for text messages p4 help usage
  32. P4LOG name of server log file p4d -h
  33. P4MERGE merge program to use on client p4 help resolve
  34. P4MERGEUNICODE merge program to use on client p4 help resolve
  35. P4PAGER pager for 'p4 resolve' output p4 help resolve
  36. P4PASSWD user password passed to server p4 help passwd
  37. P4PORT port client connects to p4 help info
  38. or server listens on p4d -h
  39. P4ROOT server root directory p4d -h
  40. P4TARGET target server for proxy Command Reference Manual
  41. P4TICKETS location of tickets file Command Reference Manual
  42. P4USER user name p4 help usage
  43. PWD current working directory p4 help usage
  44. TMP, TEMP directory for temporary files Command Reference Manual
  45.  
  46. See 'p4 help set' for details specific to Windows. The syntax for
  47. setting an environment variable depends on the OS/shell. Note that many
  48. shells allow the setting of shell variables separate from environment
  49. variables - Perforce cannot see the shell variable, only the environment
  50. variable.
  51.  
  52. If you are a typical user then the only variables of interest are
  53. $P4CLIENT, $P4PORT and $P4PASSWD.
  54.  
  55.  
  56. C:> p4 help set
  57.  
  58. set -- Set variables in the registry (Windows only)
  59.  
  60. p4 set [ -s -S service ] [ var=[value] ]
  61.  
  62. 'p4 set' sets the registry variables used by Perforce on Windows
  63. platforms. Normally, the variable 'var' is set to 'value'.
  64. If 'value' is missing, the variable 'var' is unset. Without
  65. any arguments at all, 'p4 set' list variable settings.
  66.  
  67. The -s flag causes 'p4 set' to set variables for the whole system
  68. rather than for the user. You must have NT administrator powers
  69. to use this.
  70.  
  71. The -S service flag causes 'p4 set' to set variables for the named
  72. service. You must have NT administrator powers to use this.
  73.  
  74. Currently, registry variable entries may be overridden by environment
  75. variables and (in some cases) flags on the command line.
  76. See 'p4 help environment' for a list of environment/registry variables.
  77.  
  78. P4PORT=hostname:1234
  79.  
  80. p4 set P4CONFIG=.p4config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement