From: "rolfedh@..." Date: 2006-02-23T03:53:32+09:00 Subject: Re: Telnet question After even more tinkering with waitfor and other methods, I ultimately chose the following BFI approach (which worked!): require 'net/telnet' require 'time' t = Time.now this_time = t.strftime("%y_%m_%d_%H_%M_%S") tn = Net::Telnet.new( 'Host' => '192.168.47.150', "Output_log" => "./logs/" + this_time + ".txt") { |str| print str } sleep 1 tn.puts("operator") { |str| print str } sleep 1 tn.puts('janus') { |str| print str } #Skip line with no prompt that appears after logging in tn.puts '' #Time zone offset tn.puts("F1") sleep 1