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
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: 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