From: SUGITA Toshinori <sugita _at_ psikyo.co.jp>
Subject: [linux-users:20530] cronからのtelnet呼び出し
Date: Tue, 03 Mar 1998 20:04:23 +0900 (JST)
>
> /usr/bin/telnet hogehoge.net 10000 > /tmp/tmp.txt
>
> これを、root user でコマンドラインから実行すると
> あるテキストファイルが得られるようになっているのですが、
> cronからこの部分を呼び出すと、
> - -----
> Trying A.B.C.D...
> Connected to hogehoge.net.
> Escape character is '^]'.
> - -----
> だけしかファイルに保存されません。
/usr/bin/telnet hogehoge.net 10000 > /tmp/tmp.txt 2>&1
これ ^^^^^^
としてみてはいかがでしょう?
# 自信ないけど.
---------------------------------------------------------
K.Kodama(kodama _at_ kobe-kosen.ac.jp)
---------------------------------------------------------
References:
- [linux-users:20530] cronからのtelnet呼び出しSUGITA Toshinori
- Prev by Subject: [linux-users:20557] Re: private but grobal address?
- Next by Subject: [linux-users:20559] Virtual Address Error ?
- Previous by thread: [linux-users:20530] cronからのtelnet呼び出し
- Next by thread: [linux-users:20531] 2枚のNIC(6)ありがとうございます
- Indexes:[Main][Thread]