Expect / telnet skips characters
Posted by kajkaj (kajkaj), 11 September 2007Hello,
I have an Expect script containing:
...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:
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 2007Are 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 problem
Posted by kajkaj (kajkaj), 13 September 2007Thanks for the reply. It seems that the program I used to do the communication was the one dropping characters.
Other Forum Posts
Follow us on ...
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho