摘要: sg = "ls"def sout new StringBuilder(), serr new StringBuilder()def proc = ["/bin/bash", "-c", sg].execute()proc.consumeProcessOutput(sout, serr)proc.w 阅读全文
posted @ 2021-06-23 09:29 i舒 阅读(363) 评论(0) 推荐(0) 编辑
摘要: expect send send_user #打印输出 puts打印字符到屏幕 sleep 休眠 xx s wait 等待进程执行结束 expect eof 退出expect进程 set timeout #设置等待超时时长 expect最常用的语法(tcl语言:模式-动作) 单一分支模式语法: ex 阅读全文
posted @ 2021-06-23 08:33 i舒 阅读(547) 评论(0) 推荐(0) 编辑