For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2004 > question about compiling Expect script with freewrap: invalid command spawn









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author question about compiling Expect script with freewrap: invalid command spawn
Hans Yin

2004-10-27, 3:57 am

I want to compile my scripts for distribution. I just searched this
news group and found someone said that I can use freewrap or prowrap
to compile expect scripts.
So I download freewrapBLT561 and installed it in my linux(9.0)
machine, and then compiled one of my little script. compiled
successfully, that's wonderful! but when I try to run the executable
file, it reports "invalid command spawn".

Why? Spawn is command of EXPECT, does freewrap only support TCL
command ? doesn't support EXPECT command?

another problem, I found the executable file doesn't display output
information: when I run the file with error parameters, it should
display some information to indicate error parameters, but now it
don't display this information, just end without any information.
(don't like behavior of original script file)
Hans Yin

2004-10-28, 3:57 am

hansyin@hotmail.com (Hans Yin) wrote in message news:<227a35f7.0410261724.29c2232d@posting.google.com>...
> I want to compile my scripts for distribution. I just searched this
> news group and found someone said that I can use freewrap or prowrap
> to compile expect scripts.
> So I download freewrapBLT561 and installed it in my linux(9.0)
> machine, and then compiled one of my little script. compiled
> successfully, that's wonderful! but when I try to run the executable
> file, it reports "invalid command spawn".
>
> Why? Spawn is command of EXPECT, does freewrap only support TCL
> command ? doesn't support EXPECT command?
>
> another problem, I found the executable file doesn't display output
> information: when I run the file with error parameters, it should
> display some information to indicate error parameters, but now it
> don't display this information, just end without any information.
> (don't like behavior of original script file)


Is there anybody who can help me? I need to compile my expect script
immediately. (for business! :)) I knew TDK can do it, but it's not
free. or anybody can tell me some other free products can compile
expect script?

for the second problem, I already knew the cause, it's because the
file ends immediately because of error parameters, that all output
information cann't be seen is because those information is in the
running window which was closed as well.

Any responses will be very appreciated! thanks a lot.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com