[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't login via pserver and therefore can't save ~/.cvspass file
From: |
Derek R. Price |
Subject: |
Re: can't login via pserver and therefore can't save ~/.cvspass file |
Date: |
Wed, 11 Apr 2001 09:38:40 -0400 |
Joe Kaiping wrote:
> Actually, I thought I would need to use both pserver and ssh. ssh for my
> personal CVS usage, and pserver for when CVS is executed only as a reader
> from within a script. (The script will be used to automatically update a
> web site with files contained in CVS)
>
> Can you tell me what is the best and/or most common way to call CVS from
> within a shell script so that the user running the script isn't required to
> type in a password? Or is there a way one might be able feed CVS the
> password from within the script?
Set up an anonymous account with an empty password. If recent versions of CVS
don't find an entry in ~/.cvspass, they'll try a login with an empty password:
http://www.cvshome.org/docs/manual/cvs_2.html#SEC31
http://www.cvshome.org/docs/manual/cvs_2.html#SEC36
Alternatively, if you can't change the password on the read-only account for
some reason, 'echo password |cvs login' should do the trick. I usually avoid
that kind of thing for security reasons, but it would work.
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden CollabNet ( http://collab.net )
--
I will not do anything bad ever again.
I will not do anything bad ever again.
I will not do anything bad ever again...
- Bart Simpson on chalkboard, _The Simpsons_
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: can't login via pserver and therefore can't save ~/.cvspass file,
Derek R. Price <=