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

David Anselmi anselmi at intradenver.net
Mon Apr 16 19:48:27 MDT 2001


Are you just doing this as an expect exercise?  There's no reason to automate
this, since once you run 'cvs login' it will remember your password and allow all
your subsequent cvs commands until you do a 'cvs logout'.

Dave

Jeffery Cann wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 16 April 2001 08:35, Robert L. Harris wrote:
> > You actually said the macic word "expect"...  It's a shell scripting
> > language.  It's a little cryptic but it's great for doing interactive
> > scripts.
>
> Have you used it to do CVS logins?  The CLUE site has a read-only 'anonymous'
> CVS user.  The password is anonymous.  Here is how I launch my expect script:
>
> $ 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?
>
> Thanks
> Jeff
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iEYEARECAAYFAjrbmqYACgkQw3/GBQk72kCw9QCghNWCUSbKtt4lhV/XdNVpN5+i
> Fh0An0f/h767Th2uL+NM6JxRDsgGtqvY
> =DTGv
> -----END PGP SIGNATURE-----
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech




More information about the clue-tech mailing list