Can we save the execution log when we run a command using PuTTY/Plink

淺唱寂寞╮ 提交于 2019-12-01 14:47:03
Martin Prikryl

The plink is a console application. Actually that's probably it's only purpose. As such, its output can be redirected to a file as with any other command-line command/tool.

Following example redirects both standard and error output to a file output.log:

plink.exe -m script.txt username@example.com > output.log 2>&1

See also Redirect Windows cmd stdout and stderr to a single file.

This is the one of my way to log everything when I use putty.exe on Windows.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!