Results 1 to 3 of 3
Hello,
I have an Expect script containing:
Code:
send -- "i 1 liabETH0=$liabETH0\r"
sleep 1
expect -re ".*\r
Param>"
sleep 1
send -- "i 2 liabETH1=$liabETH1\r"
sleep 1
expect -re ...
- 09-11-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Expect / telnet skips characters
Hello,
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 seeCode:send -- "i 1 liabETH0=$liabETH0\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 2 liabETH1=$liabETH1\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 3 liabIP0=$liabIP0\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 4 liabIP1=$liabIP1\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 5 liabHOST=$liabHOST\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 6 liabJFFS2=$liabJFFS2\r" sleep 1 expect -re ".*\r Param>" sleep 1 send -- "i 7 liabRUN=$liabRUN\r" sleep 1 expect -re ".*\r Param>"
but in the program in question (a bootloader) did get the full string when I check afterwards. liabHOST is "name.domain.dk".Code:Param>i 5 liabHOST=nme.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?
- 09-11-2007 #2
- 09-13-2007 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Thanks for the reply - it seems that the program I used to do the communication was the one dropping characters.


Reply With Quote