Mailing List Archive

netscreen login script (nlogin)
A user is having trouble collecting a netscreen box from a centos7 host.
We've discovered that the following change fixes the problem, but the
cause is unclear. So, I'm reluctant to commit this with knowing that it
does not break collection for some sample of users.

Could other netscreen owners try this patchi, please?

Index: bin/
--- bin/ (revision 3966)
+++ bin/ (working copy)
@@ -543,6 +543,15 @@
source_password_file $password_file
set in_proc 0
set exitval 0
+# if we have dont have a tty, we need some additional terminal settings
+if [catch {open /dev/tty w} ttyid] {
+ # no tty, ie: cron
+ set spawnopts "-nottycopy"
+ set stty_init "raw -echo cols 132"
+} else {
+ set stty_init "raw -echo"
+ catch {close ttyid} reason
foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user -- "$router\n"

Rancid-discuss mailing list