标签:not 执行 UNC pre 建立 send com comm log
expect: command not found
执行:
yum -y install expect
从最简单的层次来说,Expect用来实现计算机之间需要建立连接时进行特定的登录会话、
function login(){
echo "in"
expect_sh=$(expect -c "
spawn kinit ${LOGIN_USER_NAME}
expect \"*assword*SUNMNET.COM:\"
send \"${LOGIN_USER_PASSWORD}\r\"
expect \"#\"
")
echo "$expect_sh"
}
#expect -c ‘
#spawn kinit hdfs
#expect "*assword*SUNMNET.COM:"
#send "sunmnet123\r"
#expect "#"
#‘
其他的在学习中
标签:not 执行 UNC pre 建立 send com comm log
原文地址:https://www.cnblogs.com/zk1023/p/9883797.html