Training, Open Source computer languages

This is page http://www.wellho.net/forum/The-Tcl- ... guage/Expect-for-Microsoft-O-S.html

Our email: info@wellho.net • Phone: 01144 1225 708225

 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Expect for Microsoft O/S

Posted by admin (Graham Ellis), 10 August 2002
If you're looking for Expect (with Tk include too) for Windows, have a look at:
      http://bmrc.berkeley.edu/people/chaffee/expectnt.html
which give you downloads of Tcl, Tk and Expect all together for  windows platforms.  It's a mature release - you won't have the advanced regular expression stuff - but beyond that the age shouldn't be a problem.  Expect is famous for NOT changing - "Hey - it does all it needs ", but having made that comment the underlying design of Windows operating systems makes them a nightmare for parallel processing applications such as Expect. Don't expect a miracle if you're wanting to do something really complex.

Posted by violetita (violetita), 21 May 2003
Ok, I downloaded the zip file.  Now how do I install expect if I already have tcl installed.

Posted by admin (Graham Ellis), 21 May 2003
I would suggest you install it into a separate directory; what you've downloaded is a complete expect + tcl + tk, and you can't mix and match - in other words, you can't use just the expect part of the download with the Tcl you've already loaded. Expect does some very clever (and very OS dependant) things that force it to be that way ...

Posted by HangGlider (HangGlider), 9 July 2003
I've loaded the Expect 5.21 binary on my Win2k machine.  The install seems to have worked - except when I try to spawn a batch file, Expect gives me this error message:

spawn ftps1.bat ftp.db.com 991
couldn't execute "ftps1.bat": no such file or directory
   while executing
"spawn ftps1.bat ftp.db.com 991 "
   (file "c:\program files\expect-5.21\bin\nwfcs_ftp_put" line 1)

The batch file is indeed there - I can run it manually and it works.  Where is Expect looking for files?  What path does it search? I've added the path to the batch file to the Win2k environment - to no avail.

TIA!

HangGlider

Posted by admin (Graham Ellis), 9 July 2003
As a next test, I would try modifying the script to include the entire absolute path in the name of the batch file - a pain, I know,  but that way you'll be able to see if it really is a path problem or something else.

There's a page on paths in Don Libe's book on Expect - see
http://www.wellho.net/book/1-56592-090-2.html - chapter 13 (I wonder if that's some sort of pointer   ). Basically, it says that Expect follows the same track that the operating system does looking for executables, via the path ... but I don't know that I would rely on that comment for Windows - the Windows operating systems have come on out or all recognition in the past few years, but they're still not as good a base operating system for Expect as Unix and Linux - I'm not being biased, just stating a fact since Expect was written for a Unix platform initially!  The book also tells you that in some cases putting an absolute path in is a good idea, and I heartily agree!



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.

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