Using expect with tcl 126.96.36.199-2
Posted by hardeeps (hardeeps), 21 February 2007Hi. I currently have activestate tcl 188.8.131.52-2 installed and I wanted to use the expect package in my scripts. This version of Tcl does not come with it so I cannot with current files. However, is there a standalone installation for expect to work with this version of tcl in Windows. Also, upgrading to the newest version of tcl isn't a option. I have to use this version and wanted to know if there is a way I could use expect with it.
Posted by admin (Graham Ellis), 22 February 2007on 02/21/07 at 22:45:12, hardeeps wrote:
Err ... I think you have answered your own question there?
Posted by hardeeps (hardeeps), 22 February 2007That was a question. Wasn't really clear about your response.
Is there one available or not?
Posted by admin (Graham Ellis), 23 February 2007Sorry - I misread "is there" for "there is".
Yes, there sort of is ... there are old Expect versions around that are saiod to run on Windows prior to the Activestate release. However, I have heard that sometimes they work well enough for people and at other times they don't and it's not a route I would personally look to choosing.
Posted by hardeeps (hardeeps), 23 February 2007I only need very basic functionality with expect (ie, need to ssh to a device). I think giving the old version a try might work for my case.
Can you please point me towards these older versions and also maybe some documentation along with it.
Also, forgot to mention, it needs to work with activestate tcl version 184.108.40.206-2. Is that possible?
Posted by admin (Graham Ellis), 24 February 2007There are links to three implementations of Expect for Windows on the Expect home page.
As far as I can see, none of them was built with the specific Tcl implemenation, version, subversion that you say you must use, though. Since this stuff's Open Source there's nothing to stop you doing a build but - see my previous advise - it's not a route I personally would choose to go. I fear, Hardeeps, that if you're having to ask where to get the releases from then you're not an "Ubergeek" and , like me, you would get seriously bogged down and frustrated in the build / implement attempt.
Posted by hardeeps (hardeeps), 24 February 2007What do you suggest I do as an alternative to using expect. I need to ssh to a device, and issue some command and get some output.
Posted by admin (Graham Ellis), 26 February 2007Well ... you started out in your first post by rejecting the obvious solution of using the current and supported version of Tcl that includes exactly what you need. Why? And I suppose you could install one and run the other from it.
Posted by hardeeps (hardeeps), 27 February 2007The thing is, the testing environment which this needs to be used for work only with TCL 220.127.116.11-2. That is why this has been so hard for me.
Is it possible to have multiple versions of tcl installed on the computer and a script use tclsh83 with expect package from tcl 8.4?
Posted by admin (Graham Ellis), 28 February 2007If you call up the complete Tcl8.4 interpretter from within Tcl8.3, yes. Otherwise, don't expect it to work.
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho