Linux SSH 报Warning "Pseudo-terminal will not be allocated because stdin is not a terminal."
SSH已经配置好了
MEMTOTAL=`echo "cat /proc/meminfo | grep -i memtotal" | ssh mon@$LINE`
执行上面这个命令的时候报如下warning:
Pseudo-terminal will not be allocated because stdin is not a terminal.
加入参数-Tq之后不报warning了
MEMTOTAL=`echo "cat /proc/meminfo | grep -i memtotal" | ssh -Tq mon@$LINE`
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1995440/
,如需转载,请注明出处,否则将追究法律责任。