使用expect实现shell的交互
来源:互联网 发布:java前后端数据交互 编辑:程序博客网 时间:2024/04/30 05:06
1.安装expect
yum install expect
2.编写脚本
demo.exp:
spawn /var/www/html/imagesDirBackup.shexpect "password:"send "ispass\r"
3.这样,当shell脚本中出现了要求输入密码的时候,脚本就自动输入了。
- 使用expect实现shell的交互
- linux shell使用expect实现sftp的自动交互
- 使用expect实现shell自动交互
- 使用expect实现shell自动交互
- 使用expect实现shell自动交互
- 使用expect实现shell自动交互
- expect 实现与shell交互
- 用expect实现shell脚本的自动交互
- expect的简单使用,linux交互性shell
- Shell与程序的交互:Expect
- shell中Expect的程序交互
- shell expect交互
- 使用expect实现ssh自动交互
- 使用spawn和expect实现自动交互
- shell脚本调用expect命令实现命令行自动交互
- Linux基于expect(tcl)实现shell自动交互
- Linux expect使用,用户交互的福音
- 交互工具使用-expect
- tomcat 7+Apache Solr 3.6 部署
- windows 网络编程经典入门
- Microsoft.xmldom介绍以及api文档及相关资料
- Jdbc事务控制
- vs2010快捷键-- 摘
- 使用expect实现shell的交互
- Aop_面向切面编程(1)_思想理解
- document.body.scrollTop与document.documentElement.scrollTop兼容
- 【设计模式】牛市股票还会亏钱 --- 外观模式
- 由Passbook联想到Path的盈利模式
- 2.8.4 Wi n d o w s字符串函数
- android listview改变选中项为高亮
- 图片处理库
- Red5 流处理架构设计解析