[CLUE-Tech] expect script for cvs login? was: How do I do this?
Jeffery Cann
jccann at home.com
Tue Apr 17 19:05:40 MDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 17 April 2001 17:59, David Anselmi wrote:
> My point was that the cvs client remembers the password, so you don't have
> to put the login command in your script. Just do 'cvs login' manually,
> then write your script to do the 'cvs update' or whatever.
Good idea. I misunderstood in previous response. I always did a 'cvs
logout' because I assumed that the connection to the CVS pserver was
persistent . So, I was trying to write the script to do this:
cvs login
cvs checkout blah
cvs logout
What you are saying is to issue the 'cvs login' command from an interactive
shell for the cgi user (nobody) to set the .cvspass file information. Then
the script would not login or logout:
cvs checkout blah
BTW - I did get the expect script to work by hardcoding the password value:
- ----------------
spawn cvs login
expect "*password:"
send "anonymous\r"
expect eof
- ----------------
Your solution was easier to implement because expect is not installed on the
CLUE web server.
Thanks for all the help, Dave and Lynn!
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjrc6GcACgkQw3/GBQk72kBACwCeK6am/uG5MauEu8jRmpFqE31l
5SsAn1Qs6eSBm4EfONJFBXspKFB8OekA
=hd7b
-----END PGP SIGNATURE-----
More information about the clue-tech
mailing list