From: "井上 昌幸" Date: 2001-04-01T23:58:47+09:00 Subject: [ruby-list:29053] telnet 接続タイムアウト 井上といいます。 telnetでコマンドを実行するスクリプトを書いているのですが、BSD/OS4.1 (BSDI)のサーバに接続するときにタイムアウトエラーが出てしまいます。 (Solaris2.6やlinuxだとうまくいきます)どなたか回避方法を御教授いただ けないでしょうか。 ----スクリプト #!/usr/local/bin/ruby require 'net/telnet' user = 'inoue' pass = '*****' tnet = Net::Telnet.new({"Host"=>"192.168.***.***",             "Output_log"=>"tlog"})   tnet.login(user,pass)   tnet.cmd("ls -l"){ |c| print c } tnet.close -----エラーメッセージ "recho7" 17 行、287 バイト [nal@moon cgi-bin]$ ./recho7 /usr/local/lib/ruby/1.6/net/telnet.rb:471:in `waitfor': timed-out; wait for the next data (TimeoutError) from /usr/local/lib/ruby/1.6/net/telnet.rb:559:in `cmd' from /usr/local/lib/ruby/1.6/net/telnet.rb:585:in `login' from ./recho7:14 -----ログ Trying 192.168.***.***... Connected to 192.168.***.***. BSDI BSD/OS 4.1 (***.***.***) (ttyp2) login: inoue Password: Last login: Mon Mar 26 19:32:52 from 192.168.14.30 Copyright 1992, 1993, 1994, 1995, 1996, 1997 Berkeley Software Design, Inc. Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. BSDI BSD/OS 4.1 Kernel #2: Wed Nov 29 18:40:07 JST 2000 Use of this software is governed by the BSDI End User Software License. If you do not accept the terms of this license, immediately return the distribution to the place of purchase for a full refund. Further use of the software will be considered to be acceptance of the terms of the license. Terminal type? [xterm] -------------- どうもサーバ側にターミナルタイプが渡せないみたいなのですが、どうすれば いいのでしょうか?実行時に $ env | grep TERM TERM=vt100 とはなっています。 よろしくお願いします。 -- Best Regards, inoue masayuki inoue@osa.att.ne.jp