The Sixth Week(Lucklyzpp)
摘要:
expect脚本示例,简单在这记录下下面会用到的一些命令 set timeout #设置超时时间,默认超时时间10s. spawn shell command # spawn后面接的是我们要执行的shell命令 expect "hi" #匹配输出内容“hi” {send “hello\r”} # 匹 阅读全文
posted @ 2021-10-18 16:42 Lucklyzpp 阅读(51) 评论(0) 推荐(0) 编辑