[CLUE-Tech] expect script for cvs login? was: How do I do this?

Lynn Danielson lynnd at techangle.com
Mon Apr 16 22:52:17 MDT 2001


Jeff,

Are you sure $password is getting set to "anonymous"?
I believe the first line of your script should say
set password [lindex $argv 0]  instead of $argv 1.

Lynn


Jeffery Cann wrote:
> 
> $ export CVSROOT=:pserver:anonymous at clue.denver.co.us:/usr/local/cvsroot
> $ expect cvslogin anonymous
> 
> - ------ cvslogin ---------
> set password [lindex $argv 1]
> spawn cvs login
> expect "*password:"
> send "$password\r"
> expect eof
> - -----------------------
> 
> CVS reports:
> $ expect cvslogin anonymous
> spawn cvs login
> (Logging in to anonymous at clue.denver.co.us)
> CVS password:
> cvs [login aborted]: authorization failed: server clue.denver.co.us rejected
> access
> 
> I know that anonymous/anonymous works because I can do a 'cvs login'
> interactively and it will work correctly.
> 
> Anyone with suggestions?



More information about the clue-tech mailing list