#47 exp_spawn failed to run with DEP on windows 2003

closed-out-of-date
nobody
None
5
2010-08-28
2007-12-20
Yaron
No

Hello,

I am using Expect 5.40 on Windows 2003 SP2 R2 with TCL version 8.4.2.9. The computer is standard IBM compatible with Intel Core 2 6400 2.13 GHz processor.

When I run the thin script, which you can see below, the exp_spawn fails to execute without special error message. It seems that the DEP prevents from Expect to spawn the process.
I looked into it in the net and I only found out that the solution is either disable DEP (which solve my problem) or add the executable script to the list of DEP (opt-Out) which doesn't work for my case (but works fine on Windows XP).
Either workarounds are not good for my purposes since customers are not very happy with disabling DEP.

Do you know about any other solution or is it a bug?

Script
-------
package require Expect;
log_user 1;
log_file "test.log"

exp_spawn ".\\plink.exe" "1.1.1.1"

expect {
timout {
puts "timeout"
}
"login as:" {
puts "SUCCESS"
}
}

Thanks,
Yaron

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

    • status: open --> closed-out-of-date