[p4] scripting with ticket-based authentication?

Russell C. Jackson rusty at rcjacksonconsulting.com
Thu Oct 6 11:16:10 PDT 2005

You can put this in your script, but it expose the password for the account.
You could make a wrapper script that calls your main script and keep the
wrapper script secure from other users view through the protections table.

echo password|p4 login

Note the lack of spaces around the pipe symbol. It will not work if you put
a space in there.

RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
Russell C. Jackson 
211 River Oaks Lane
Russellville, AR 72802 
rusty at rcjacksonconsulting.com
tel:         479-696-9710
fax:        479-967-2308 
mobile:   479-747-3845

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
John.Davis at sophos.com
Sent: Thursday, October 06, 2005 8:21 AM
To: perforce-user at perforce.com
Cc: Amanda.Culver at sophos.com
Subject: [p4] scripting with ticket-based authentication?

We are using the Perforce ticket-based authentication system (security level
3). Our IT department has deciden on a policy of 12-hour ticket expiry,
which is acceptable (with some grumbles).

We have several automated scripts, though, and I can't figure out the best
way to run these without hitting problems with ticket expiry. Is it possible
to write scripts which can login automatically? Obviously I'd rather not
have plain text passwords in scripts, or anything obviously insecure.
How do you guys manage this sort of thing?

Our environment is mixed Unix and Windows, so solutions on either platform
may be helpful. Oh, and we're using 2005.1.



perforce-user mailing list  -  perforce-user at perforce.com

More information about the perforce-user mailing list