Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Telnet character conversion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jhmartin
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 95

PostPosted: Wed Feb 23, 2005 8:42 pm    Post subject: Telnet character conversion Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum