expect学习笔记及实例详解

转载自: http://ifis.blog.hexun.com/44587020_d.htmlhtml 1. expect是基于tcl演变而来的,因此不少语法和tcl相似,基本的语法以下所示:linux 1.1 首行加上/usr/bin/expect 1.2 spawn: 后面加上须要执行的shell命令,好比说spawn sudo touch testfile 1.3 expect: 只有spa
相关文章
相关标签/搜索