21 gru 2017 - As you say, pipe the password to the login command: echo password|p4 -u user login. p4 login doesn't read the plaintext password from .