[英]getting error tput: No value for $TERM and no -T specified when trying to connect from jenkins to jmeter servers
i am using distributed framework for performance testing where i have 1 controller jmeter machine and 2 jmeter machines are working as load generators.I am trying to connect all the machines from jenkins server and executing shell script on controller machine to execute the test.Setup was working fine but from last couple of days i start getting following error 我正在使用分布式框架进行性能测试,其中有1台控制器jmeter机器和2台jmeter机器用作负载生成器。我正在尝试连接jenkins服务器上的所有机器并在控制器机器上执行shell脚本以执行测试。工作正常,但从最近几天开始,我开始出现以下错误
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Below are the shell scripts, i am executing from jenkins server 以下是我从jenkins服务器执行的shell脚本
#!/bin/bash
USERNAME=jmeter
HOSTS="jmeter01.com jmeter02.com"
#SCRIPT="source .bash_profile; alias ; pwd"
for HOSTNAME in ${HOSTS} ; do
echo "Connecting with host name : ${HOSTNAME}"
ssh -T -o StrictHostKeyChecking=no ${USERNAME}@${HOSTNAME} "${SCRIPT}"
echo "ssh connection successful with ${HOSTNAME} "
done
尝试用“ t”代替“ T”
ssh -t -o StrictHostKeyChecking=no ${USERNAME}@${HOSTNAME} "${SCRIPT}"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.