I had 80 lines of tcl expect scripting running great, which basically opened a plink command to a remote switch and ran CLI commands, and then I started getting random "?" interspersed in my send strings
my command:
send "add uplinkport 123_45_678\r"
but what would be entered on the remote system
add uplinkport 123_?45_678
I can cut the string from the script, and paste it into a putty terminal session, and it executes fine, no "?" appears
I tried executing older saved known-good version of th script, same behavior. Tried those scripts from another PC, same. Rewrote using notepad, wordpad, editpad pro, same behavior. Tried running scripts against a different switch, same behavior. Used norton av scan and unhackme, nothing found.
What is causing this "?" to appear in my send string???
Unfortunately, I'm having this problem too.
At first, I thought its because of a too long strings, so I've tried to break the sent string into several shorter ones. But no good came out of this try.
I've tried another telnet client which worked, but there is no SSH support with this one.
This problem is with PLINK only.
I hope someone will come out with a fix for that...
Check out solution to this problem at http://community.activestate.com/forum/question-mark-inserted-sent-strin...
If you experience this nigthmare, add:
set send_slow {1.120}
at the beginning. This helps reducing (or almost eliminating ? when typing) using exp_send
Hope this helps folks...
I am also seeing this issue. Does anyone know if there is a solution other than carefully placing \b characters in the exp_send statements? Does it have anything to do with the version of plink or sshd?
Thanks!
As Kobe said (thanks Kobe) usage of OpenSSH client fixes the issue.
This is old, but looks like is the last available.
And worked ok for me :-)
http://sourceforge.net/projects/sshwindows/files/OpenSSH%20for%20Windows...