Thus said Aaron Martinez on Tue, 09 Nov 2010 09:48:15 CST:

> # sh -x 227254.test

Why are you telling sh to interpret an expect script? Why not try:

$ expect 227254.text

> 227254.test[3]: spawn: not found
> + interact {
> 227254.test[4]: interact: not found
> + 034 exit
> 227254.test[5]: 034: not found
> 227254.test[6]: syntax error: `}' unexpected

These  errors are  all  produced by  sh.  sh is  trying  to execute  the
commands in 227254.test  and is it any wonder that  it doesn't recognize
the words spawn, interact, 034, and says there is a syntax error?

> Is the format of his expect script all wrong or??

No, you are using the wrong interpreter.

Andy

Reply via email to