[rancid] MikroTik missed cmd(s): system package print detail without-paging

heasley heas at shrubbery.net
Fri Jan 9 23:47:56 UTC 2015


Fri, Jan 09, 2015 at 08:37:51PM +0000, heasley:
> Fri, Jan 09, 2015 at 05:51:52PM +0000, IT-Info:
> > After patching bin/mtlogin, there seems to be improvement.  The devices that were experiencing the error are now being backed up properly.
> > 
> > The logs show many of these messages, though.  Is this normal?
> > are you disconnected or in a batch, at, or cron script?stty: impossible in this context
> 
> that is coming from expect...though i do not understand why.  catch should
> have prevented it.  what version of expect is this?
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Please try this alternative patch:

Index: bin/mtlogin.in
===================================================================
--- bin/mtlogin.in	(revision 3012)
+++ bin/mtlogin.in	(working copy)
@@ -457,6 +457,15 @@
 source_password_file $password_file
 set in_proc 0
 set exitval 0
+# http://www.shrubbery.net/pipermail/rancid-discuss/2015-January/007984.html
+# 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 "cols 132"
+} else {
+    catch {close ttyid} reason
+}
 foreach router [lrange $argv $i end] {
     set router [string tolower $router]
     send_user "$router\n"


More information about the Rancid-discuss mailing list