Hello,
 Our product is build with the great help of ruby. We support many
 unix flavors and the ruby build script will telnet to build host
 and do compilation there. Most of the time things works wonderfully well,
 but time to time we get this execption:

Invalid argument
/sb/tb/toolbox3/sparc-sun-solaris2.5.1/lib/ruby/1.6/net/telnet.rb:464:in `select
'
/sb/tb/toolbox3/sparc-sun-solaris2.5.1/lib/ruby/1.6/net/telnet.rb:464:in `waitfo
r'
/sb/tb/toolbox3/sparc-sun-solaris2.5.1/lib/ruby/1.6/net/telnet.rb:552:in `cmd'
 ...
 ...

 We start build process on solaris
        (ruby -v ruby 1.6.5 (2001-09-19) [sparc-solaris2.7])

 And we get the execption when telentting to linux
        (ruby -v ruby 1.6.5 (2001-09-19) [i686-linux])

 We open telnet connection like this:
     tn = Net::Telnet::new({"Host" => build_hosts[platform],
                            "Timeout" => 480,
                            "Waittime" => 5
                          }){|line| print line}
    tn.login("xxx", "xxx"){|line| print line}
      tn.cmd("bash") if platform == 'hpux'
      tn.cmd("TERM=vt100; export TERM; cd #@release_dir; . ./sbrc3.sh; " + 
           commandline 
           ) { 
      |line| 
        print line
        buildlog.push(line)
        retry_cnt = 0 if line =~ /CLEANING DONE/
    }

I would very much like to help to solve this problem. Feel free
to send me any suggestions to fix or patches or whatever.

 - Ville