plink无法从标准输入中读取:句柄无效

时间:2018-10-16 20:34:45

标签: windows bash ubuntu plink

WS 2008R2 Enterprise SP1上的批处理文件,调用plink.exe(v.0.70.0.0),在ubuntu 16.04.4中执行,间歇性失败无法从标准输入中读取:句柄无效。

echo -e "youGuessedIt\n" | sudo -S nginx -t -c /home/userNoOne/Documents/nginx.conf &> /home/userNoOne/Documents/nginxResult.txt 
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log.1 >> /home/userNoOne/Documents/nginxResult.txt
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log >> /home/userNoOne/Documents/nginxResult.txt

Plink.exe的一个已知错误记录了此失败。我正在寻找最简单的解决方法: https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/win-plink-stdin-handle-invalid.html

0 个答案:

没有答案