Discussion:
[rancid] term width typo?
Lee
2010-10-06 18:32:06 UTC
Permalink
kind of looks like a typo - "set width" instead of :"term width" for a
not CatOS box:

diff -U 6 rancid-2.3.5/bin/clogin ~/rancid/bin/clogin
--- rancid-2.3.5/bin/clogin 2010-09-23 10:58:12.000000000 -0400
+++ ~/rancid/bin/clogin 2010-10-06 12:18:53.000000000 -0400
@@ -886,22 +896,23 @@
send "set width 80\r"
expect -re $prompt {}
send "set logging session disable\r"
} else {
send "terminal length 0\r"
expect -re $prompt {}
- send "set width 80\r"
+ # --LR-- send "set width 80\r"
+ send "terminal width 132\r"
}
expect -re $prompt {}
source $sfile
catch {close};
} else {


Lee
john heasley
2010-10-06 22:43:54 UTC
Permalink
Maybe this falls into the "don't do that category", but I've been
doing rancid-run interactively as well as from cron
no problem doing that.
kind of looks like a typo - "set width" instead of :"term width" for a
diff -U 6 rancid-2.3.5/bin/clogin ~/rancid/bin/clogin
--- rancid-2.3.5/bin/clogin 2010-09-23 10:58:12.000000000 -0400
+++ ~/rancid/bin/clogin 2010-10-06 12:18:53.000000000 -0400
@@ -886,22 +896,23 @@
send "set width 80\r"
expect -re $prompt {}
send "set logging session disable\r"
} else {
send "terminal length 0\r"
expect -re $prompt {}
- send "set width 80\r"
+ # --LR-- send "set width 80\r"
+ send "terminal width 132\r"
correct, my bug. it will be in the next version.

Loading...