【发布时间】:2012-04-23 11:11:56
【问题描述】:
我是 Expect 脚本的新手,我想知道任何可以从 Expect 脚本基础开始的链接。
- 命令语法
- 如何运行和测试脚本。
【问题讨论】:
标签: expect
我是 Expect 脚本的新手,我想知道任何可以从 Expect 脚本基础开始的链接。
【问题讨论】:
标签: expect
获取本书Exploring Expect。 Expect 是Tcl 的扩展,所以通过Tcl tutorial。
关于如何使脚本可执行的快速教程:
$ cat > test.exp << END
#!/usr/bin/expect -f
send_user "hello world\n"
END
$ chmod a+x test.exp
$ ./test.exp
hello world
当你开发和测试你的 Expect 脚本时,把
exp_internal 1
在开头。
【讨论】: