>>>>> "V" == Ville Mattila <mulperi / iki.fi> writes:

V> This is the telnet part of the build script:
V>     begin
V>     tn = Net::Telnet::new({"Host" => build_hosts[platform],
V>                             "Timeout" => 480,
V>                             "Waittime" => 5
V>                           }){|line| print line}			       
 Well, I can't reproduce the problem with this script


moulon% cat b.rb
#!/usr/bin/ruby
require 'net/telnet'
require 'auth'
platform = 'linux'
@release_dir = 'ruby/ruby-1.6.5'
commandline = 'make distclean; ./configure; make'
retry_cnt, buildlog = 0, []
begin
    tn = Net::Telnet::new({"Host" => 'pigeon',
                              "Timeout" => 480,
                              "Waittime" => 5
                          }){|line| print line}
    tn.login($user, $pass){|line| print line}
    tn.cmd("bash") if platform == 'hpux'
    tn.cmd("TERM=vt100; export TERM; cd #@release_dir; #{commandline}"
           ) { 
        |line| 
        print line
        buildlog.push(line)
        retry_cnt = 0 if line =~ /CLEANING DONE/
    }
rescue
    puts $!, $@
    if retry_cnt != 0
        retry_cnt -= 1
        buildlog.clear
        commandline += " -t"
        retry
    end
end
moulon% 

moulon% uname -sr
SunOS 5.7
moulon% 


pigeon% uname -rs
Linux 2.2.17
pigeon% 


Guy Decoux