Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More general zsh-scripting question

Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:

>  cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxx:/cvsroot/snd login
>  cvs -z3 -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxx:/cvsroot/snd update -d cvs-snd
>  index=1
>  When the second line is executed, the login: prompt stops execution
>  of the script and waits for the <RETURN>.
>  Is there a way to automate this ?

Login is not needed with a reasonably modern CVS client.  Try this
instead (without login):

cvs -z3 -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/snd update -d cvs-snd

Note the ":" after "anonymous".

Meino Christian Cramer <Meino.Cramer@xxxxxx> writes:

> From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
>> Why do you need cvs login in script? You only have to do login once, then CVS 
>> remembers login/password/repository combination and does not ask for it 
>> anymore.
>   As I mentioned I have a couple of projects from the net for which I
>   do updates via cvs. Not all use the same cvs server. cvs only stores
>   one login/password/repository combination.

Huh?  Are you using some odd CVS client?  The standard CVS client
has stored an unlimited number of login/password/repository
combinations for as long as I can remember.


Messages sorted by: Reverse Date, Date, Thread, Author