You only need to "cvs login" one time.  After that it is not necessary,
The information is stored in ~/.cvspass

If your cron job is using different CVSROOT values for each
time it is run (seems unlikely) then you'd have to log in
of the CVSROOT values once.  (presumably there is a 
small, finite, predetermined set of CVSROOT values you'd
be using, (probably just one value)...  

Well if not, you're doing something rather strange...:-)

hope it helps
--steve


> -----Original Message-----
> From: Mikael Grave [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 14, 2000 8:18 AM
> To:   cvs-list
> Subject:      Writing shell scripts that use CVS / Automatic checkout
> 
> Hello,
> 
> I am currently writing a small Shell script that will log into my CVS
> respository and will issue a checkout. This script is intended to be
> called every 10mn by a crontab.
> 
> Since "cvs login" does not have a command line option to pass the
> password, I was wondering if there is a simple trick to run "cvs login"
> automatically? I have tried things like:
> 
> echo "xxxxx" | cvs login
> 
> But it does not work (the password is not taken from the buffered stdin
> I guess).
> 
> My original purpose was to perform an automatic checkout (in a test bed)
> every time someone was doing a commit. Doing this with "commitinfo" did
> not seem possible since "cvs commit" recursively commit all modified
> files, if 100 files are commited at once, I don't want commitinfo to
> launch 100 checkouts (maybe should I simply run one "update" per
> "committed" file?). So I decided to go for a crontab (not as good, user
> may have to wait 10mn to see their changes published in the test bed).
> 
> Any help or trick are welcome. I guess my problem is quite common. Hope
> my questions are not too stupid :)
> 
> Cordially,
> 
> Mikael
> -- 
> Mikael Grave     Tel. (613) 731-4046      http://www.webmotion.com
> Webmotion Inc.   Fax. (613) 260-9545    [EMAIL PROTECTED]
> `----------------------------------------------------------------'

Reply via email to