shell脚本中自动输入用户名和密码

来源:互联网 发布:人工智能 西蒙 编辑:程序博客网 时间:2024/05/17 18:18

两种解决方法:

一、重定向

二、expect

 

可参考如下网址

http://linux.ctocio.com.cn/171/12162171.shtml

http://blog.sina.com.cn/s/blog_45497dfa0100l4cf.html

原创粉丝点击