shell相关之expect

当你不能把交互式的命令变成非交互式的命令时使用 # passwd user1 //交互式html # echo 123456 | passwd --stdin user1 //非交互式 #!/bin/bash ip="172.16.70.251" yum install expect -y if grep 251 /etc/hosts then : else echo "$ip test.up.c
相关文章
相关标签/搜索