From: Todd Benson Date: 2012-10-13T21:37:27+09:00 Subject: Re: telnet by socket On Sat, Oct 13, 2012 at 6:39 AM, Ferdous ara wrote: > 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 ?? It sounds like it's receiving and responding to \r and then \n. Just take the first output.