On 7/22/09, Amogh Gonwar <amogh.gonwar / gmail.com> wrote:
> HI!
>
> the current code which I am using is (also attached):
[snip]

I don't know anything about this telnet library, but there seem to be
a couple of obvious problems with this code you've posted. First your
RBDI class doesn't have a method named send_1. Presumably, you meant
send instead? Second, your @prompt variable is set to /BDI>/ initially
and never changed. So how could you expect it to be /-- Target
stopped/?(Unless @connection.waitfor changes it somehow, which seems
unlikely.)

> I am looking at bdi.send_1 to send instructions when the @promt is /--
> Target stopped/. I need to add a procedure in rbdi.rb for send_1 which
> sends commands @prompt /-- Target stopped/, and I am unable to do this.

This made no sense. Please try to explain again.