[p4] Logging into P4V, then running P4 dos commands - single login possible?
David Weintraub
qazwart at gmail.com
Fri Apr 20 08:46:58 PDT 2007
First, what is going on:
Perforce can use a "ticket" to track users logging in and out of
Perforce. That's why once you log in, you don't have to log in to run
each and every command. When you log into the Perforce command line,
you are allowing Perforce to create a new ticket for that user. This
ticket is normally stored in the user's $HOME directory under the
.p4tickets in Unix and in %USERPROFILE\p4tickets.txt in Windows.
I am not sure why P4V is not setting up the ticket in the
%USERPROFILE% directory, but it could be due to your P4V settings. Go
to the Perferences menu item under "Tools" and look at the
"Connection" tab.
Some companies change the length of time the ticket the ticket is
good, so the user never has to log in. If you look at the Perforce
groups, there is a Timeout field. This is the number of seconds that
the ticket is good. I believe that the default is for 12 hours, but
you could change this to a very large value (such as 9999999), so the
tickets won't expire for several years. This way, once a user logs
into Perforce on a particular system, they never have to log in again.
On 4/20/07, Geoff Rowland <growland at blueomega.com> wrote:
> Currently, users are logging into P4V first. We then have an external
> application that runs some P4 DOS commands on that users machine,
> however it doesn't seem to pick up the login information from P4V - it
> always says "Perforce password (P4PASSWD) invalid or unset". I don't
> want to have to either hardcode the user+password in the script, or have
> the user enter it twice (not really possible with the script we are
> using). The strange thing is, it seems if you run P4 DOS commands
> first, you don't need to login to P4V a second time.
>
>
>
> Is there someway to get the login/ticket info from P4V in DOS?
>
>
>
> --
>
>
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
--
David Weintraub
qazwart at gmail.com
More information about the perforce-user
mailing list