Normally, that cmd
would do the trick. Unfortunately, my
script needs to connect to a login without shell access, so I can’t set TERM
that way on the remote (UNIX) box. The
login is given a menu from the start, and it is from that menu that I call the
program that wants to see ‘vt100’. The local side is a WinXP
box. Setting TERM in the local XP-DOS
environment did what I expected:
nothing. Any
other ideas? [So far, the only choice I’m seeing is to
work-around by inserting an extra hop―connecting to a UNIX shell login first,
using that cmd(‘export
TERM=vt100’) there, and then re-connecting from that shell login to my
destination―but that is definitely not a preferred way to do this. It would be much better to go direct if
there is a way.] -----Original Message----- Try tm->cmd(‘export TERM=vt100’) -----邮件原件----- I need to set the Telnet terminal
type option for a telnet connection using Net::Telnet. Does anyone know
how to do that? My script is connecting to the
system and processing most commands just fine. (So I know it is NOT
related to my prompt setting.) The problem comes when I try to use a
program on the server that is looking to see ‘vt100’ in the Term Type, and it
seems to be seeing ‘tvi925’ instead. I’ve tried looking through the docs
and Telnet.pm, but I’m not sure how to go about using TELOPT_TTYPE, or even if
that is what I need to use. |
- [Perl-unix-users] 答复: [Perl-unix-us... Mingbo_Wan
- Re: [Perl-unix-users] RE: Net::Telnet and Te... Andrew Timberlake-Newell
- Re: [Perl-unix-users] RE: Net::Telnet an... Travis Hoyt