[CLUE-Tech] expect script for cvs login? was: How do I do this?
Jeffery Cann
jccann at home.com
Mon Apr 16 19:21:38 MDT 2001
-----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-----
More information about the clue-tech
mailing list