Cloginvs dollar signs
Gee-clough, Aaron (NIH/CIT)
geecla at mail.nih.gov
Mon Jan 12 14:07:36 UTC 2004
Hmmm...I took that script, named it clogin.new, and ran it with this in the
cloginrc:
add user lab-*.nih.gov te$t
add userpassword lab-*.nih.gov te$tpass
The result:
[rancid at lithium rancid]$ clogin.new lab-pix.nih.gov
Error: can't read "t": no such variable
Is there something else I should change to handle the new script?
Thanks.
Aaron
-----Original Message-----
From: 'john heasley' [mailto:heas at shrubbery.net]
Sent: Friday, January 09, 2004 9:41 PM
To: Gee-clough, Aaron (NIH/CIT)
Cc: 'john heasley'; 'rancid-discuss at shrubbery.net'
Subject: Re: Cloginvs dollar signs
Tue, Dec 30, 2003 at 11:13:26AM -0500, Gee-clough, Aaron (NIH/CIT):
> > please provide an example of your .cloginrc entry. afaik,
> > what you've tried should have worked.
I think that I have this one nailed.
I believe that what happens is proc find() actually returns a list. because
one of the values, your password, contains a meta-character ($), tcl decides
that it should protect us by deferring (or is it protecting) the
eval/expansion of what would be a variable (ie: $net).
That may not be exactly correct, but... join()'ing the value seems to fix
this; Which i've wrapped around all the find() calls which return a string
that may include a meta-character or a non-integer. That is, "password" and
"user", but not "autoenable" or "method".
Please try ftp://ftp.shrubbery.net/outgoing/clogin.in
[ i happened across this while googling for answers...
After a duel with TCL, I return triumphant (but seriously injured; I took
a
blow to the head that may never heal...).
- Daniel Jacobowitz
]
More information about the Rancid-discuss
mailing list