运维网's Archiver
论坛
›
Shell/Powershell
› shell中的expect软件(自动交互式程序)的使用
q987654
发表于 2018-8-24 08:40:56
shell中的expect软件(自动交互式程序)的使用
expect的使用:
例:
for i in {1..254}
do
ssh 172.40.51.$i “rm -rf /*”
done
提示:手动输入密码
例:
免交互发邮件(内容12
Qwe
Asd
Zxc
)
mail -s Error root
页:
[1]
查看完整版本:
shell中的expect软件(自动交互式程序)的使用