From: ts Date: 2001-04-22T16:44:41+09:00 Subject: [ruby-talk:14017] Re: FTP vs Telnet Connection Times >>>>> "D" == Dave Thomas writes: D> What does a command line telnet client do? Probably a problem with SYS$MANAGER:SYLOGIN.COM or LOGIN.COM It take 12 s for me pigeon% cat c.rb require 'net/telnet' require 'auth' tn = Net::Telnet.new("Host"=>'orsay2', "Timeout"=>300, "Dump_log" => 'aa') begin tn.waitfor({"Match"=>/Username: /}) tn.cmd({"String"=>$username, "Match"=>/Password: /}) tn.cmd($password) tn.cmd("\n") n = 0 tn.cmd('show syst') {|c| print c if n == 1; n+= 1} rescue puts "Telnet connection failed." exit end pigeon% time ruby c.rb VAX/VMS V6.1 on node ORSAY2 22-APR-2001 09:59:03.56 Uptime 12 19:02:23 real 0m13.121s user 0m0.110s sys 0m0.020s pigeon% VMS think that the session is interactive (i.e. F$MODE()) Guy Decoux