code_junkie

In Perforce, what is the command to connect to a different port when switching client user?

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