Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
20.9.2014 - We have just updated our course layouts and descriptions and added our 2015 schedule.

Using expect with tcl 8.3.5.0-2

Posted by hardeeps (hardeeps), 21 February 2007
Hi. I currently have activestate tcl 8.3.5.0-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.

Thanks.

Posted by admin (Graham Ellis), 22 February 2007
on 02/21/07 at 22:45:12, hardeeps wrote:
However, is there a standalone installation for expect to work with this version of tcl in Windows.


Err ... I think you have answered your own question there?


Posted by hardeeps (hardeeps), 22 February 2007
That was a question. Wasn't really clear about your response.

Is there one available or not?

Posted by admin (Graham Ellis), 23 February 2007
Sorry - 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 2007
I 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 8.3.5.0-2. Is that possible?

Thanks.

Posted by admin (Graham Ellis), 24 February 2007
There 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 2007
What 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 2007
Well ... 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 2007
The thing is, the testing environment which this needs to be used for work only with TCL 8.3.5.0-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 2007
If you call up the complete Tcl8.4 interpretter from within Tcl8.3, yes. Otherwise, don't expect it to work.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho