Discussion:
[rancid] clogin that reads passwords from stdin
Matjaz Straus
2007-07-17 08:56:21 UTC
Permalink
Hi, all!

We've disliked the idea that router passwords are stored on disk while clogin
is being executed. Therefore, we wrote a small patch that allows clogin to
read passwords from STDIN (with a "-f -" option). You might find this patch
interesting.

Example of usage:
some_prog_that_writes_cloginrc 2>/dev/null |clogin -f - -c "sh ver" device_name

Regards,

Matjaz

P.S.
Another minor thing -- I've found "term width 0" in clogin very useful.


--
Matjaz Straus, ARNES ***@arnes.si MS6745-RIPE
Jamova 39, p.p.7, SI-1001 Ljubljana, Slovenija
tel:+386 1 479-88-00 fax:+386 1 479-88-99
http://www.arnes.si/
PGP public key at: http://www.arnes.si/~matjaz/
keyID 7AB260CD 1998-11-04
key fingerprint = 32 23 95 63 FE D3 FF C9 7B 88 21 A6 0C A9 3B 5E
------------------------------------------------------------------------------
Loading...