I have setup some environment variables for my perforce, like P4PORT, it's working, I also export the P4PASSWD and can see it if I type $
export -p, but the p4 still ask me to type in the password when I tried to log in with $
p4 -u myusername login. Any idea or solutions?
moreover, I noticed some comments within company's wiki, like "If you have automation that requires Perforce interaction and the requirements have not been communicated to the Perforce team, please send them an e-mail. Once the team becomes aware of all the details, Perforce tickets can be used to allow the automated interaction."
does that mean P4PASSWD is not allowed in my current repository and if I want to automate this, I need to use "perforce tickets" mechanism?
Thanks.
I did some research and seems got a valid solution, the solution is generating a global ticket, $ p4 login -a -p
, this will print out a long string of characters, store it some where, for example, ~/.myp4ticket
, then you can type $ p4 -P `cat ~/.myp4ticket` sync
, cheers.