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