info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing the password in command line


From: Todd Denniston
Subject: Re: passing the password in command line
Date: Tue, 08 Nov 2005 15:53:35 -0500

> "Rachupally, Upendra (GE Healthcare, consultant)" wrote:
> 
> Hi,
> 
> I am trying to use the command line commands to login to CVS. Following is
> the command
> 
> cvs -d :pserver:address@hidden:/cvsroot/gehcbi login
> 
> It is asking for the password. I want to supply the password in the same
> command to avoid the prompt. I tried passing the password in the command
> line like this and it is not working
> 
> cvs -d :pserver:JOHN:address@hidden:/cvsroot/gehcbi login
> 
> Could please let me know how to pass the password in the command so that
> it won't prompt for that.
> 
> Thanks in advance

the Frequent Answer to this Question is:
you only have to do the login once, unless you do cvs logouts, so why are
you trying to script it? It usually seems bad enough just having the simply
munged password in the ~/.cvspass, why would you want to put it in clear
text for ps and top to show?


the quick answer, I think, for  how to do it is:
echo -ne "WELCOME\n" | \
cvs -d :pserver:address@hidden:/cvsroot/gehcbi login

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]