shell的for循环中嵌入expect的测试
来源:互联网 发布:天际网络 编辑:程序博客网 时间:2024/04/28 12:56
#!/bin/shtest(){ expect -c " log_user 0; set timeout 10; spawn echo $1; interact;"}n=(30111 30112)length=${#n[*]}echo "$length"for((i=0;i<$length;i++))do echo "begin...." echo $i test ${n[$i]} echo "end...."done~ ~
output:
2
begin....
0
30111
end....
begin....
1
30112
end....
- shell的for循环中嵌入expect的测试
- expect 嵌入shell的for循环中的方式对比
- shell中嵌入expect脚本
- shell 中常用的for循环
- Shell Script中FOR循环的使用
- shell的for循环
- shell的for循环
- shell中Expect的程序交互
- shell中expect的初步使用
- java 中for循环的性能测试
- shell expect 的介绍
- shell 的expect实践
- shell 中for的测试脚本
- linux shell 的 for 循环
- linux shell 的 for 循环
- linux shell 的 for 循环
- linux shell 的 for 循环
- 发现shell中for循环的一个妙用
- [leetcode] Construct Binary Tree from Inorder and Postorder Traversal
- 更新或删除某条记录的时候,无法操作,或被锁解决
- 回溯法实现八皇后问题
- MYSQL索引
- 观察者模式
- shell的for循环中嵌入expect的测试
- vmware + linux 虚拟硬盘空间不足?
- 在Sqlserver里获取存储过程返回值和带入参数实例
- 在windows下如何配置RTT开发环境?
- NYOJ 506题 洗澡
- Visual Studio原生开发的10个调试技巧(转)
- JDK 1.8 预览版 Lambda语法分析
- 动态规划解决0-1背包问题
- Java - 流程控制