ActiveState Powered by ActiveState

ActiveState Community


Unable to spawn telnet session from TCL script with Expect on Windows XP Professional

Posted by Bharat Shah on 2008-01-08 17:18

I was using ActiveTcl Ver 8.4.14 with my older PC with Windows XP Ver 5.1.
I just got new PC with Windows XP professional Ver 5.1 as well.
I am using "package require Expect" at the begining of my script.
I loaded ActiveTcl Ver 8.4.14 and script died at the following command.

set pid [spawn telnet 192.168.1.1 23]

I loaded ActiveTcl Ver 8.4.17 and same issue.
ActiveTcl Ver 8.5.0.0 does not contain Expect package and useless for me.

I nedd help. Does anyone know what's going on?

Thanks.

Vamsi Krishna | Wed, 2008-01-09 23:13

Hi,
I wrote some functions in C. To create Tcl my own commands. Now I want to combine these Tcl commands with my gui{which has been created in TK}. Can you please suggest me how to combine?

Thanks and Regards
Vamsi Krishna. M

mstinaff | Fri, 2008-02-22 13:24

I have the same issue as well. I tried 8.5 and then ran teacup -install Expect. same fail. The exact error I get is:
The exception unknown software exception (0xc0000409) occurred in the application at location 0x59a7295d.

this is the same error and location if I use 8.5 or 8.4. Both versions of Expect are 5.43 though.

catalinmy | Fri, 2008-02-22 14:46

And to me, TCL crash after: shawn ping 192.168.0.1 . I have Windows XP SP2 and Active TCL 8.4.11 (Expect are 5.43).

weyersjj | Sat, 2008-04-12 02:39

See link:
http://support.microsoft.com/kb/875352
Choose the OptOut mode:
Explanation:
DEP is some kind of protection. You can exclude applications from this protection by adding this applications (telnet, ftp etc.) to that list.
Yust start your configuration tool in XP choose the classic gui->system-> advanced->Dutch: Prestatie/English:?->(Dutch: Instellingen: English: Configuration/Preferences?)->*Dep* and add your programs to the list.
Reboot the computer.

sschen | Mon, 2008-04-14 13:44

This is the solution:
Modify the c:\boot.ini file as
"/noexecute=AlwaysOn"

It will allow to spawn the process.

-->