【发布时间】:2014-01-30 22:27:03
【问题描述】:
我正在使用 putty 连接服务器并执行命令,但我不知道如何将命令输出重定向到文本小部件。
exec patchtoputty/putty.exe -ssh myserver -pw mypass -m mycommand
通常这应该(?)有效:
catch {exec patchtoputty/putty.exe -ssh myserver -pw mypass -m mycommand} results
.text insert 1.0 $results
但在这种情况下,我正在执行具有自己的终端窗口的 putty(或例如 cygwin)命令。
问候, 卢卡斯
【问题讨论】: