更新时间:1970-01-01 07:58:24
问题是Windows 7中PATH
上没有telnet.exe
.您可能会发现PuTTY套件中的plink.exe
选项)是可以接受的替代方法,但可能还有其他替代方法.
The problem is that there is no telnet.exe
on your PATH
in Windows 7. You may find that plink.exe
from the PuTTY suite (with suitable options) is an acceptable replacement, but there are probably others too.
telnet.exe
也可能存在,但被(系统)标记为不可能附加调试器(这是Expect在Windows的幕后真正起作用的方式;这是非常深刻的黑客,我不是发明人!)即使是这种情况,解决方法也一样:找到替代程序.
It's also possible that telnet.exe
exists but is marked (by the system) as impossible to attach a debugger to (which is how Expect really works under the covers on Windows; this is very deep hackery and I'm not the inventor of it!) Even if that's the case, the fix is the same: find an alternative program.
也可以完全用Tcl代码模拟telnet,但是很多的工作是因为Telnet是一个相当混乱的协议,而终端仿真却非常烦人.不推荐的方法.
It's also possible to emulate telnet entirely in Tcl code, but a lot of work as Telnet is a pretty messy protocol and terminal emulation is grindingly annoying. Not a recommended approach.