Opening a telnet session using TCL in windows

1.2k Views Asked by At

Is it possible to connect to a specific ip and host over telnet using TCL, in windows? I can't seem to find any information about this, there are some info for Linux but none for Windows.

EDIT: OK, I got it working. Initially I had this code:

set s [socket $ip_address $host]
puts $s "hi there"

but when running this code, nothing would actually be transmitted to the server. Only after I ran

flush $s

would the text be transmitted. I had thought that the puts command would do this automatically, I'm not sure why I have to use the flush command.

0

There are 0 best solutions below