From: Ferdous ara Date: 2012-10-13T20:39:39+09:00 Subject: Re: telnet by socket HI i found the solution i had to put sock.puts "recover BD-1\r\n" response = sock.read i had to put \r\n i guess its specifiq to environment . but only problem is , its giving me 2 out put OK Server Ok but how will just take the last output which is OK? do i have to take the value as array ?? thanks -- Posted via http://www.ruby-forum.com/.