double echo in expect
来源:互联网 发布:淘宝网钓鱼背包 编辑:程序博客网 时间:2024/04/29 05:58
The problem is that the output stream coming from the spawned rlogin may show _MYPROMPT two times or it may show it three times. The script has to handle either case.
Why does that happen? Have ever logged in to a system and started typing a command before your .profile was done? You will see what you typed, but your login ksh isn’t processing it yet. When the login ksh finally gets done with the .profile, then you see your typed command *again* as ksh echoes it back to you. I’ll call this the “double echo” problem.
For the automation script, I want the script to process the output stream through the PS1 prompt by the ksh. If you hit the “double echo” problem, then the third expect is matching on the PS1 prompt. If you missed the “double echo” problem, then the second expect already matched on the PS1 prompt, so the third expect is going to time out.
two echo 现象
时序准确,乱序扔到后面的内容,造成当机
- double echo in expect
- shell in expect
- eval in expect
- sum Double in java
- echo colorful text in shell.
- What to expect from Microsoft in 2007
- NSN HLR simulator for provisioning in expect
- Expect
- expect
- expect
- expect
- Expect
- expect
- expect
- expect
- expect
- expect
- expect
- 吴玉东-学习总结
- JavaScript权威指南(第6版)(中文版)
- 十个iOS面试问题
- 从一个Activity调转到另一个Activity时Activity的生命周期
- 配置linux颜色的一些技巧 +man颜色+ ls颜色
- double echo in expect
- Java的内存回收机制
- mysql (1)基础
- 1ActiveMQ使用 2ActiveMQC#Client实现 3ActiveMQC++Client实现通讯 4 ActiveMQJavaClient实现
- 【OpenGL】绕任意单位轴旋转矩阵计算
- 提高程序运行效率的方法
- jstl c标签的使用
- first
- linux权限