【发布时间】:2017-07-31 11:08:45
【问题描述】:
我正在通过 PuTTY 的 Plink 功能调用远程 ssh - 我能够连接并运行我的命令,但无法将输出存储到另一个文本文件中 - 我的脚本如下:
plink ssh_hostname -m "directory\till\inputCommand.txt" -l username -pw password > "directory\where\OutputTxt_Will_Be_Saved\OutputRes.txt"
这里创建了OutputRes.txt,但它完全是空白的。结果显示在命令行上,但没有保存到OutputRes.txt(这是我要保存的)。
【问题讨论】: