[#29170] Call for Papers Linux Conference 2001 — akira yamada / やまだあきら <akira@...>

18 messages 2001/04/10
[#30213] Re: Call for Papers Linux Conference 2001 — akira yamada / やまだあきら <akira@...> 2001/06/13

[#29190] Time Stamp Copy of File.copy — "たけ(tk)" <ggb03124@...>

 ftools.rb の move では utime を行っていて日付が同じになりますが、copy

42 messages 2001/04/11
[#29193] Re: Time Stamp Copy of File.copy — matz@... (Yukihiro Matsumoto) 2001/04/11

まつもと ゆきひろです

[#29201] Re: Time Stamp Copy of File.copy — " たけ (tk)" <ggb03124@...> 2001/04/11

たけ(tk)です。

[#29203] Re: Time Stamp Copy of File.copy — WATANABE Hirofumi <eban@...> 2001/04/11

わたなべです.

[#29212] Re: Time Stamp Copy of File.copy — Minero Aoki <aamine@...> 2001/04/12

あおきです。

[#29215] Re: Time Stamp Copy of File.copy — " たけ (tk)" <ggb03124@...> 2001/04/12

たけ(tk)です。

[#29220] Re: Time Stamp Copy of File.copy — Minero Aoki <aamine@...> 2001/04/12

あおきです。

[#29234] Re: Time Stamp Copy of File.copy — " たけ (tk)" <ggb03124@...> 2001/04/13

たけ(tk)です。

[#29236] Re: Time Stamp Copy of File.copy — matz@... (Yukihiro Matsumoto) 2001/04/13

まつもと ゆきひろです

[#29238] Array#include! — " たけ (tk)" <ggb03124@...> 2001/04/13

たけ(tk)です。

[#29244] Re: Array#include! — matz@... (Yukihiro Matsumoto) 2001/04/13

まつもと ゆきひろです

[#29348] Open3 — NISHIO Mizuho <mzh@...>

どうも西尾です。

16 messages 2001/04/20

[#29397] rnet.rb 〜高レベルネットライブラリ〜 — rubikitch <rubikitch@...>

るびきちです。

11 messages 2001/04/24

[ruby-list:29053] telnet 接続タイムアウト

From: 井上 昌幸 <inoue@...>
Date: 2001-04-01 14:58:47 UTC
List: ruby-list #29053
井上といいます。
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

In This Thread

Prev Next