From: Justin Collins Date: 2011-03-02T11:39:40+09:00 Subject: Re: telnet 1.9.1 On 03/01/2011 07:01 AM, Gaspar Brogueira wrote: > Hi > > In the version of Ruby 1.8.7 this code works as expected > > require 'rubygems' > require 'net/telnet' > $localhost = Net::Telnet.new("Host"=>"appfoca04") {|str| puts str} > $localhost.waitfor(/Connected/ ) { |response| print "Response 4 > connection: " + response } > > > but in 1.9.1 I get the following error: > > telnet.rb:5:in `
': undefined method `waitfor' for > # (NoMethodError) > > > > Any idea? > > Greetings, > Gaspar Brogueira > > Try 1.9.2. Worked fine for me there (with a different host, of course). -Justin