Chinaunix
标题:
一个简单在 expect脚本问题
[打印本页]
作者:
yangliu9420
时间:
2012-09-20 21:57
标题:
一个简单在 expect脚本问题
脚本内容如下:
#!/usr/bin/expect
set count 9
if { $count < 10 }
{
puts "hello"
}
然后在执行的时候,报了如下错误:
wrong # args: no script following " $count < 10 " argument
while executing
"if { $count < 10 }"
(file "./firstExpect.sh" line 5)
请各位大牛指点一下,谢谢!
作者:
jason680
时间:
2012-09-20 22:34
回复
1#
yangliu9420
if { $count < 10
} {
# they need one the same line
puts "hello"
}
作者:
bikong0411
时间:
2012-09-21 09:32
学习鸟
lol
作者:
yangliu9420
时间:
2012-09-22 13:38
多谢
回复
2#
jason680
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2