[p4] p4 command line query

steve at vance.com steve at vance.com
Fri Nov 21 08:53:08 PST 2008

On #1, if you read the docs to login, you can send the password on stdin.


Original Message:
From: Rajesh Kumar  (IN4774) rajesh_kumar1 at mindtree.com
Date: 	Fri, 21 Nov 2008 15:56:10 +0530
To: perforce-user at perforce.com, rajeshkumar.raj06 at gmail.com
Subject: [p4] p4 command line query


I have following query...anybody help?
Query 1:
I am trying to pass login id and password on command line to login
successfully. As per the help file...
p4 -u builder login -a
This is not passing password and its prompting...

Is there any way where I can pass uerid and password without any prompt?

Query 2:
I am writing one script file which will check p4 availabilities in system
and if yes then run oen batch file and if no then prompt message.

How to check p4 installation on command line? I know "p4 info" can used but
that is not useful in my script. I need to have some inputs to my script.

Rajesh Kumar| CM Build and Packaging Engineer
http://www.scmgalaxy.com<http://www.scmgalaxy.com/> |

This message (including attachment if any) is confidential and may be
privileged. If you have received this message by mistake please notify the
sender by return e-mail and delete this message from your system. Any
unauthorized use or dissemination of this message in whole or in part is
strictly prohibited. E-mail may contain viruses. Before opening attachments
please check them for viruses and defects. While MindTree Limited
(MindTree) has put in place checks to minimize the risks, MindTree will not
be responsible for any viruses or defects or any forwarded attachments
emanating either from within MindTree or outside.

Please note that e-mails are susceptible to change and MindTree shall not
be liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all
messages sent to or from MindTree e-mail address. Messages sent to or from
this e-mail address may be stored on the MindTree e-mail system or else
perforce-user mailing list  -  perforce-user at perforce.com

myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting

More information about the perforce-user mailing list