ActiveTcl / Expect in Windows 7

Posted by ericstob on 2010-01-20 10:47
Forums: Expect discussion | OS: Windows 7

I have a problem with Expect in Windows 7

1) Install Telnet client (
2) Install ActiveTcl
3) "teacup install Expect"
4) launch Tclsh85
5) package require Expect
6) spawn telnet someipaddress

"The system cannot find the file specified"

I search the whole internet for information, and the only advice they have is "install telnet client" which I already did.

I am starting to think it is a bug with ActiveTcl.

Anyone have advice for me?

ActiveState Staff
Thu, 2010-01-21 11:13

A little more background on the code and exact error message (line which gives it) would help. From the description I don't see how this would be an ActiveTcl bug as yet.

ActiveState Staff
Fri, 2010-02-05 15:10

Is this on 64-bit or 32-bit Windows 7, and which Windows 7 variant?

ericstob | Fri, 2010-02-05 15:29

64 bit Windows 7 Enterprise.
But I gave up and used Cygwin's expect, which worked fine.

ActiveState Staff
Fri, 2010-02-19 15:49

There have been a number of reports that DEP on 64-bit Windows machines is preventing Expect from connecting to Telnet clients.

Cygwin avoids the problem by side-stepping DEP, Windows telnet, and Windows Expect; running Linux versions instead.

gunns | Sun, 2011-06-19 16:28

Use "plink.exe" from Putty instead of Telnet. i.e.
spawn plink -telnet ${ip_address}

It's available from