Win server 2012 - Expect, receive no prompt back from a spawn process

Posted by gargml on 2014-03-12 04:31
Forums: TDK discussion | OS: Windows x64

Hi Guys,

I have an executable file compiled from tcl and expect library.

This file is spawning plink.exe -ssh -P 22 but fail to receive any prompt back.

I can see in the Task Manager that Plink is indeed spawned but nothing happens.
I later tried to spwan a standard IPCONFIG process and also received no prompt at all.

This Odd behavior happens only in Win2012 server,
Win XP, Win server 2008, win server 2003, all works fine.
- I'm running a 32-bit plink (i am aware of the 64- bit expect library limitation)
- DEP is disabled completely on the machine

I'm using Expect version 5.4.3

Please advise,
what have i missed ?
what changed in win server 2012 that i'm not aware of ?


ActiveState Staff
Thu, 2014-03-13 09:49

covers the areas most likely to cause this sort of behavior.

gargml | Sun, 2014-03-16 00:35

Hi Grahams,

Thank you for the reference, i will review all those changes and try to figure out what is preventing the Expect library to work properly.

Meanwhile, can you kinkily share with me, does anyone succeed in using the Expect library under win 2012R2 ?

are you aware of any issues occurred in this environment with the Expect ?


gargml | Tue, 2014-03-18 05:18

Hi Grahams,

I have noticed that in win2012 the executble file i'm running is opened with conhost process of it's own.
in other win machine the conhost is open under csrss.exe

this conhost under the executable file is "stealing" all the prompt, clears my buffer and than the Expect doesnt match anything and i get nothing but "".

are yo aware of such behavior ?

Please update me,