1 expect -c " 2 spawn scp /root/.ssh $IP:/root/.ssh; 3 expect { 4 \"yes/no\" { send \"yes\n\";exp_continue } 5 \"password\" { send \"$PASSWD\n\" } 6 } 7 "
© 著作权归作者所有
举报
相关热门文章
发表评论
0/200
1 expect -c " 2 spawn scp /root/.ssh $IP:/root/.ssh; 3 expect { 4 \"yes/no\" { send \"yes\n\";exp_continue } 5 \"password\" { send \"$PASSWD\n\" } 6 } 7 "
© 著作权归作者所有
发表评论