Logging in and logging out
If time limits are in effect at your site, you must issue the
p4 login
command to obtain a ticket. Enter your
password when prompted. If you log in successfully, a ticket is created
for you in the ticket file in your home directory, and you are not
prompted to log in again until either your ticket expires or you log out
by issuing the p4 logout
command.
To see how much time remains before your login expires, issue the following command:
p4 login -s
If your ticket is valid, the length of time remaining is displayed. To
extend a ticket’s lifespan, use p4 login
while
already logged in. Your ticket’s lifespan is extended by 1/3 of its
initial timeout setting, subject to a maximum of your ticket’s initial
timeout setting.
To log out of Helix Core Server, issue the following command:
p4 logout