So I heard about this really cool tool called autoexpect… so I read here that Expect is
http://blogs.activestate.com/activestate/2005/09/expect_for_wind.html
part of activestates free offering, so of course I download it, but Expect can’t be found!
So after more searching I found that you have to add it
http://community.activestate.com/faq/where-is-expect
(USE teacup install Expect)
But then after more research I find that it’s impossible for Autoexpect to work inside of the ActiveState version.
This post explains in detail why http://coding.derkeiler.com/Archive/Tcl/comp.lang.tcl/2008-03/msg00917.html
Anyways so what is a guy to do? So I installed cygwin, and installed all of the packages (took a long time but guaranteed that expect would be there). Then of course I couldn’t find autoexpect.
Well autoexpect is just a script anyways, so I was able to download it using this guys site and instructions.
http://wi-fizzle.com/article/191
Wish I could have those hours of my life back….
Re: Actually getting autoexpect to work on Windows solved
I can’t give you back your hours, but I can let you know you saved me (and probably countless others) from the same black hole. Thanks for posting this 🙂
Hi,
maybe you’ll be able to help me? plz!
I followed your instructions, installed cygwin with expect package. I placed autoexpect script into /usr/bin directory. I ran it first time and get error that env(SHELL) is not defined. I set system variable SHELL to bash. Now I can run autoexpect … BUT it does not work as expected. I assume that’s something with my environment but can’t figure out what prevents it to spawn the shell. When I run script.exp file I’ve got this output :
$script.exp
spawn bash
susja@susja /usr/bin
$
And that’s it … i.e. it hangs on this place and the only way to exit is to press Ctrl+C. It look that something wrong with spawning the shell or etc.
Any idea how to make it work?
Thanks