From: Newbie on
Hello all,

I am back to Tcl and I am learning expect to automate some back-end
processes. After some dabbling I found that expect pretty much fits
the bill very nicely. However, I cannot find the book at the
bookstores and the sample chapter available online is pretty light on
details. Is there a place with more documentation or with some real
examples? What I have found are basic examples of telnet and ftp but
they are not complete and it seems to me that there should be pretty
solid examples of these given its age.



Thanks!

From: Tcl Bliss on
On May 5, 7:31 am, Newbie <newtophp2...(a)yahoo.com> wrote:
> Hello all,
>
> I am back to Tcl and I am learning expect to automate some back-end
> processes.  After some dabbling I found that expect pretty much fits
> the bill very nicely.  However, I cannot find the book at the
> bookstores and the sample chapter available online is pretty light on
> details.  Is there a place with more documentation or with some real
> examples?  What I have found are basic examples of telnet and ftp but
> they are not complete and it seems to me that there should be pretty
> solid examples of these given its age.
>
> Thanks!

It is best to buy the book:
http://www.amazon.com/Exploring-Expect-Tcl-based-Automating-Interactive/dp/1565920902/ref=sr_1_1?ie=UTF8&s=books&qid=1273167963&sr=1-1

Expect has some gotchas which will give you a few headaches and waste
hours of your time. You need to know the rules, like escaping rules
etc. The book will be well worth it if you plan to use Expect
extensively.

Another way to learn is to use autoexpect script which will create an
expect script for you that you can study and modify. It works like
this: You start autoexpect, it will start capturing everything you do
at command line/shell and record it as an expect script. In the end
you type "exit" or "Control D" and then study the created script.
From: Newbie on
On May 6, 1:57 pm, Tcl Bliss <tcl.bl...(a)gmail.com> wrote:
> It is best to buy the book:http://www.amazon.com/Exploring-Expect-Tcl-based-Automating-Interacti...
>
> Expect has some gotchas which will give you a few headaches and waste
> hours of your time. You need to know the rules, like escaping rules
> etc. The book will be well worth it if you plan to use Expect
> extensively.

Thanks for the info. I ordered one of the used books. My
experiments with it did not go far. I am assuming because of the
matching rules. Let's see how the book helps.