From: Ferdous ara Date: 2012-10-11T18:42:03+09:00 Subject: telnet by socket Hi i am trying to telnet by ruby.. i went through google. but i am bit confused. so i need bit help require 'socket' host = 'localhost' port = 5555 socket = TCPSocket.open(host,port) send = socket.send("recover BD-1",0) response = socket.sead print response basically, if i do from command line telnet localhost 5555 OK Server recover BD-1 : then i will type this and then telnet will output OK so i need to get that OK but that socket is not doing anything Can some one help me out please -- Posted via http://www.ruby-forum.com/.