| ||||||
Expect / telnet skips characters Posted by kajkaj (kajkaj), 11 September 2007 Hello,I have an Expect script containing: Code:
...but I get some strange hickups. Every now and then a letter disappears in the output I see in my terminal. If for instance $liabHOST is "name.domain.dk" i see this in the terminal: Code:
but the program in question (a bootloader) did get the full string when I check afterwards. liabHOST is "name.domain.dk". These random hickups are really bugging me, as I need to present the output from the expect script in a Gtk UI, and sometimes this fails with a "Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed" error, whenever the expect scripts do something strange., Can anyone point me in the direction of a solution? Posted by admin (Graham Ellis), 11 September 2007 Are you echoing to the screen by leaving log_user set to 1? Does it make any difference if you change it to zero and the use the response string in expect_out? In fact have you checked whether or not expect_out is correct (and is it?) - that extra evidence would help define the problemPosted by kajkaj (kajkaj), 13 September 2007 Thanks for the reply. It seems that the program I used to do the communication was the one dropping characters.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
| ||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |