Advertisement

Using CVS from a script

Started by April 01, 2006 12:01 AM
2 comments, last by Bregma 18 years, 9 months ago
I want to write a script that runs nightly and checks out my project from my local CVS server and then builds it. But I can't figure out how to do it. Whenever I run CVS it prompts for a password. How do you give CVS the password from within a script? Is there another way to do this (without using something heavyweight like CruiseControl)?
I like the DARK layout!
Ask for a read-only CVS account without a password. Also, can't you specify the password on the commandline in user:password@server fashion?

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

Advertisement
I tried to set up anonymous CVS following these instructions, but whenever I try to connect I get the message:
cvs [checkout aborted]: connect to 192.168.0.101(192.168.0.101):2401 failed: Connection refused

But what you're saying is that once I get that working I should be able to specify a blank password on the command line?
I like the DARK layout!
Depends on the authentication protocol and how you've set that up.

If you're using the pserver protocol, you only need to do a cvs login once, and the password will be stored in your $HOME/.cvspass file.

If you're using SSH tunneling and you've got a passwordless key registered on the remote machine (like SourceForge does it) you don't need to give a password.

Other authentication schemes do require a password, in which case you may be fsked if you want to script things. Anonymous CVS should not be using a password-protected scheme.

Stephen M. Webb
Professional Free Software Developer

This topic is closed to new replies.

Advertisement