On Sat, Oct 13, 2012 at 6:39 AM, Ferdous ara <lists / ruby-forum.com> 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.