Subject: Re: CVS updating from /etc/daily
To: None <netbsd-users@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: netbsd-users
Date: 04/22/2002 10:41:41
"Nate Johnston" <netbsd@natej.org> wrote:

> I would like to automatically update my CVS every night from the
> /etc/daily script, followed by other informational utilities I don't
> want to run until after the cvs update.  To that end, this is my
> /etc/daily.local:
>
> if [ -d /usr/pkgsrc ]; then
>                 echo
>                 echo "Downloading source using 'cvs'"
>                 cd /usr
>                 /usr/pkg/bin/cvs -d
"anoncvs@anoncvs.netbsd.org:/cvsroot" update -Pd | grep -v "cvs server:
Updating"
> fi
[...]
> Downloading source using 'cvs'
> anoncvs.netbsd.org: Connection refused
> cvs [update aborted]: end of file from server (consult above messages
if any)
>
> What is the reccomended way of doing this, if any?  What can I do to
> get this to work?  I have made sure that root has already done a cvs
> login and I can run the `/usr/pkg/bin/cvs -d ...` line from the
> command line.

The immediate cause of the error is that CVS_RSH isn't set to "ssh" in
the environment. On the other hand, you wouldn't need to set CVS_RSH if
you were using pserver. On the other other hand, you only need to do a
"cvs login" if you're using pserver. On the other other other hand,
your -d <cvsroot> isn't of the pserver style. So I can't suggest a
solution without knowing which protocol you intend to use. :-)

What does your /usr/pkgsrc/CVS/Root say?

- Amitai