我正在寻找像ssh支持或从标准input读取的能力,所以我可以输出plink的输出。
有没有人有什么build议。
http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink-usage-batch
使用plink(从腻子套件)自动ssh,做一个尾巴命令,并注销
微软已经build立了一个尾巴程序(Tail.exe)。 它是Windows Server 2003资源工具包工具的一部分。
该可执行文件也将在Windows XP上正常运行。
我不知道plink,但是我用ssh工作的方式是:
ssh [email protected]'tail -f www / logs / logfile.log'>〜/ temp / current.log
然后用baretail打开current.log文件