Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone using freewrap with expect components in their script?

Status
Not open for further replies.

rubberscissors

Technical User
Oct 11, 2001
21
US
I'm trying to use freewrap to convert my TCL script to an executable; it works, and the script launches ok, but it's choking on all my Expect commands (this tool is used for automation testing so I use expect a lot). Is there any way to make freewrap and expect play nicely together that anyone knows of? When I run the same script just from the windows shell it works fine.

 
Expect has no real counterpart for the win32 platform.
There was an experimental release for nt 4.0.

I think you will end up writing your own expect library
for this:(
I was thinking about this the other day.

The basic expect commands could be simulated with
puts and gets and some arrays.
Interact, I think could be done with interp calls.
It would be a pain.
 
I haven't heard of anyone using FreeWrap with Expect, but that doesn't mean that nobody's done it. It's a non-trivial task though, as is wrapping any package with a binary library.

If you're trying to wrap an Expect application for a version of Unix supported by TclPro, I highly recommend using TclPro Wrapper instead of FreeWrap. TclPro Wrapper supports wrapping not only with a standard tclsh or wish, but also with an included "bigtclsh" and "bigwish", which have built-in support for [ignore][incr Tcl][/ignore], TclX, and Expect (Unix only). TclPro Wrapper also allows you to specify your own custom, statically-linked Tcl interpreter. And TclPro is now freeware, available for download from the Tcl Developer Xchange.

As for a Windows version of Expect, as marsd mentioned, there's an experimental port for Windows NT/2000. I've heard that it's adequate for basic Expect scripts (but the interact command isn't supported at all). This is based on an old version of Expect compatible only with Tcl 8.0. It branched off the main Expect development line, and is basically a dead-end. There have been rumblings about porting the Windows code into the main Expect code base for years. Seems to be a lot of demand, and several developers have stepped forward and offered to port it if compensated (it would be a mutli-month effort). But nobody seems to want it badly enough to actually pay for the effort. - Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top