Hello,
I have a simple task i.e. run autoexpect program to automate telnet. I was able to do it on my Solaris box but I am stuck on my Windows XP box.
Here’s what I did:
1. downloaded expect-5.43.tar to my local drive, untar it and have Expect located at C:\…. . I tried to execute ‘autoexpect’ but it says: “‘autoexpect’ is not recognized as an internal or external command”
2. I installed ActiveTcl 8.5.9. Successfully ran ‘teacup install Expect’.
3. Here I’m blocked: how now I could execute autoexpect program?
thanks in advance
Expect is a recent addition to windows thanks to the very hard work of the Tcl Core group.
I’d suggest that you comment out the chmod +x based on an env check for platform type. Please see the documentation for your proposed platform for what tcl’s native ‘file attributes’ supports.
After a brief study of the script all the rest seems tcl safe cross-platform, though some breakage may be incurred with unsupported options for expect core commands under windows.