jhmartin Tux's lil' helper
Joined: 03 Sep 2003 Posts: 95
|
Posted: Wed Feb 23, 2005 8:42 pm Post subject: Telnet character conversion |
|
|
I've got a script that echoes a value into telnet.
Code: | echo $the_hostname | telnet my.machine 6789 |
I'm experiencing a problem such that if $the_hostname contains the number 7, my.machine gets the data up to the number 7 and then some garbage.
Strace output from telnet during this operation:
Code: | read(0, "gap07\n", 8192) = 6
send(3, "gap0\377\364\377\375\6", 9, 0) = 9
|
This only happens on a certain group of hosts, and then only when using the script -- manually performing the telnet and entering $my_hostname works. What might cause this? |
|