ActiveTcl / Expect in Windows 7

Posted by ericstob on 2010-01-20 11:47
Forums: ActiveTcl support | OS: Windows 7

I have a problem with Expect in Windows 7

1) Install Telnet client (http://www.leateds.com/2009/telnet-for-windows-vista-windows-7/)
2) Install ActiveTcl
3) "teacup install Expect"
4) launch Tclsh85
5) package require Expect
6) spawn telnet someipaddress

Observed:
"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?

jeffh
ActiveState Staff
Thu, 2010-01-21 12: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.

grahams
ActiveState Staff
Fri, 2010-02-05 16:10

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

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

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

grahams
ActiveState Staff
Fri, 2010-02-19 16: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 17:28

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

It's available from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html