Win 7 64 bit & Expect

Posted by rv on 2011-04-21 11:03

Can I spawn telnet in Win 7 64-bit machine using Expect?
Or is it possible to spawn any 'win32 console application' using '32bit Active Tcl with Expect' in '64-bit machines'?
Kindly let me know.

ActiveState Staff
Thu, 2011-04-21 13:53

You would need to install the 32-bit version of ActiveTcl and then install Expect via teacup. However, it can only control other 32-bit applications due to the injector library for control being 32-bit.

juls858 | Fri, 2011-06-10 10:27

I have installed activetcl 32-bit and copied over telnet.exe from a 32bit windows xp machine.

I have disabled DEP for the telnet.exe i copied over and still cannot spawn the telnet client?

Can you please be more specific as what changes are needed to make this work?

rv | Fri, 2011-06-10 12:37

Hi Juls858,

Using telnet in Win7 64 machine was unsuccessful.
Some how 32bit console app like telnet does not seem to be supported by 64bit machines while spawning.

So I used an alternative -
Used Windows XP mode from Windows Virtual PC that is available in Win7.
Invoked my programs from this Win XP virtual mode. And telnet/Tcl/Expect/Wish84 worked.

Also use the following as first line in your code.
package require Expect