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