码迷,mamicode.com
首页 > 系统相关 > 详细

linux expect

时间:2015-05-19 18:29:21      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:

timeout -1 为永不超时

Expect中最关键的四个命令是send,expect,spawn,interact。

send:用于向进程发送字符串
expect:从进程接收字符串
spawn:启动新的进程
interact:允许用户交互

linux expect

标签:

原文地址:http://www.cnblogs.com/relaxgirl/p/4515072.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!