From: Caleb Clausen Date: 2009-07-23T10:08:18+09:00 Subject: Re: Telnet Ruby On 7/22/09, Amogh Gonwar 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.