如何在服务器上搭建web服务器

如何在服务器上搭建web服务器,第1张

expect -c "
set timeout 30;
spawn /usr/bin/ssh admin@$ServerB-IP
expect {
\"yes/no\" {send \"yes\r\"; exp_continue}
\"password\" {send \"xxx\r\";}
expect {
\"# \" {send \"tar zcvf ~/hellotargz hello\r\"}
\"$ \" {send \"tar zcvf ~/hellotargz hello\r\"}
}
interact"
这样试试


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/12999740.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-29
下一篇 2023-05-29

发表评论

登录后才能评论

评论列表(0条)

保存