Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
 

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
Tcl/Tk module T212
Expect Processes
Exercises, examples and other material relating to training module T212. This topic is presented on public courses Learning to program in Tcl, Tcl Programming, Tcl Programming

Expect can be used to control multiple connections at the same time a useful facility if it's connecting to processes that take a long elapsed time to run. In this module, you'll learn how to control multiple processes, never an easy task, but much easier with Expect than with other languages!


Articles and tips on this subjectupdated
4678Expect with Ruby - a training example to get you started
The Expect library, originally written for use wth Tcl, is also available in other languages and today I wrote an example to introduce how it's used in Ruby. Please note this is a spike solution - not going to fail (if it does) in a pretty way. The principle of expect is that you spawn a process - ...
2016-05-18
 
3448Checking all the systems on a subnet, using Expect and Tk
There are times that we want to check the connectivity of all the systems on our subnet - to see which machines are present, and which are not. Pinging them one at a time is a bit slow, but pinging them all at once in a simple script sets up too many connections and the script is likely to fall over. ...
2011-09-18
 
2489Parallel Pinging, using Python Threads or Expect spawn lists
Ping is a very useful command to use within scripts for checking the presence (or absence) of a live system on our network, or indeed on the Internet. However, there are subtle differences in the format of its report on different operating system flavors, so any code that you write that needs to analyse ...
2010-11-03
 
2474Using Tcl and Expect to automate repetitive jobs
If you're typing the same series of instructions into your computer time and time again, perhaps with predictable variations depending on the responses that you get, you should consider using Expect. Expect adds three extra major commands to the Tcl language: • spawn to start a process • send ...
2009-10-24
 
1785What is running on your network? (tcl and expect)
Earlier this week, I gave a much-tailored Tcl course, with a strong helping of expect. Expect adds three major extra commands to Tcl - spawn to start a new process under the control of the running Tcl/Tk code, send to send information to it and expect to await for - and decide on how to process - a ...
2008-09-05
 
1173Cheat Sheet / Check list for Expect maintainers
Programming in Expect can be very different (and more challenging) than conventional programming. Rather than write code (structured, if you like) through a series of events, you'll do better to start off with a co-operation diagram of the process that you want to automate [[For the newcomer, Expect ...
2007-05-03
 
675Adding PHP tags to an old cgi program
Our web site has grown over the years, and we've developed a number of very useful scripts such as our quotation system that's written in Perl and our live server test program in Tcl and Expect. Now we require to run those scripts within the current look and feel, with its printer friendly flexibility, ...
2006-06-05
 
Examples from our training material
botget   parallel expect example - get robots.txt from several servers
exp_ping   expect - multiple parallel pings, Red Hat Linux version
livetest.exp   Web based script - ping a series of remote hosts
mex   multiple processes through expect
osx_tkpingle   Checking which machines are online - Mac OSX
pingle   parallel pings - Caldera Linux version
server.tce   Expect script, web server, CGI
tkpingle   Checking network continuity using ping, Expect and a Tk GUI
Pictures
Expect can handle multiple parallel processes
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 [here].
Topics covered in this module
Multiple processes, multiple simultaneous processes.
Interact with multiple processes.
Background processing.
Issues of synchronising and polling multiple processes.
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,Ruby, Lua, 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 700 books on the subjects on which we teach. These books are available for reference at our training centre.


You can Add a comment or ranking to this page

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

PAGE: http://www.wellho.net/resources/T212.html • PAGE BUILT: Mon Feb 8 18:55:24 2016 • BUILD SYSTEM: WomanWithCat