Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
A Web interface for your Linux admin tasks
Tips and short articles on this subject
Automating processes through Expect
Curley brackets v double quotes - Tcl, Tk, Expect
Buffering of inputs to expect, and match order
What is Expect?
Installing Tcl and Expect on Solaris 10 - a checklist
Cheat Sheet / Check list for Expect maintainers
Expect for Windows
Automating regular manual procedures
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
What is Expect? Why use it? - Tcl/Tk module T211
Expect is a Tcl extension that's heavily used by perhaps a third of our trainees. If you have an application that's designed for a human user, but you want to run it automatically, expect lets you mimic the human actions via a series of send and expect commands.

This topic is presented on public course Tcl Basics

Examples from our training material
e1   Simplest ping check via expect
e2   Ping via expect, echo back a value from the report
e3   expect - do not grab indeterminate
ftp1   First Expect example
ftp2   Expect with some error checking and decisions
linksandimages   Grab a web page, report all links and images
plet.exp   Expect for Windows - ping a host and guess its distance from you
weblinks   Grab a web page and report all links
wuff   Expecting from a list (regular expression)
yap   Expecting from a list (expect block)
Specialist books

Opentalk forum discussions related to this topic
asking for expect which used to interact program
Using expect with tcl 8 3 5 0 2
Processing output after Spawning in Expect
help with redirectioning output
What is Expect a sample
Web Front TCL Expect Telnet Backend
Reading from the expect out buffer
Reading from Expect out buffer
How can I kill process Id s from within quot Expect quot
Expect for Windows
Can I combine Expect and Tk
Almost same Problem
Pictures
Tcl and Expect - a great way to handle interaction
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Sample problems.
A regular task.
A solution.
Software testing.
A possible solution.
What else is Expect?.
Expect commands.
spawn, expect and send.
More on the expect command.
Not wanting to echo what you expected?.
Not knowing what to expect?.
Variables set by expect.
Expect patterns.
Running Expect on Windows platforms.
Course links
The following web pages are used as references / examples in this module

[Link] Expect for Windows NT
(at http://bmrc.berkeley.edu/people/chaffee/expectnt.html)

We check these links from time to time with a spider written in PHP. Latest full check was on Saturday, 12th June 2004. Titles are extracted from the web pages listed.

Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Tcl/Tk, Expect,Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 600 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


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