[p4] Scripting and ticket authentication
Nathan_Tran@trendmicro.com
Nathan_Tran at trendmicro.com
Tue Jul 17 12:22:54 PDT 2007
You can echo the password to a temp password file and have the p4 login
command read in the password from temp file like so:
echo mypassword>passwd.txt
p4 login <passwd.txt
For windows, there shouldn't be a space between the password that is
being echoed and the redirection, otherwise the white space will show up
in the passwd.txt file and produce an invalid password.
-Nathan
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Jamison, Shawn
Sent: Tuesday, July 17, 2007 11:01 AM
To: perforce-user at perforce.com
Subject: [p4] Scripting and ticket authentication
I know this has been asked before but I cant seem to find it.
Is there a way to get around the prompt for windows and unix scripts
that need to do a p4 login?
It would be nice if I could supply a password in the script to obtain a
ticket.
Thanks
-Shawn J>
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
More information about the perforce-user
mailing list