Exploring Expect (Nutshell Handbook)

  Author:    Don Libes
  ISBN:    1565920902
  Sales Rank:    56304
  Published:    1994-12-01
  Publisher:    O'Reilly
  # Pages:    608
  Binding:    Paperback
  Avg. Rating:    4.0 based on 26 reviews
  Used Offers:    21 from $19.68
  Amazon Price:    $23.07
  (Data above last updated:  2008-09-30 05:37:38 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Exploring Expect (Nutshell Handbook)
  
Written by the author of Expect, this is the first book to explain how this new part of the UNIX toolbox can be used to automate Telnet, FTP, passwd, rlogin, and hundreds of other interactive applications. Based on Tcl (Tool Command Language), Expect lets you automate interactive applications that have previously been extremely difficult to handle with any scripting language.
                  Reader Reviews 1 - 16 of 16                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
06-04-08 3 (NA)
(Hide Review...)  Powerful tool, painful book
Reviewer Permalink
I picked up Exploring Expect: A Tcl-based Toolkit for Automating Interactive Programs (Nutshell Handbooks) to get started on a regression-testing framework for common Unix programs. I was also very curious to see how Tcl was used to make this tool.

To those ends, I wasn't disappointed. Expect makes it possible to automate tedious interactive work at the interface level. One can write concise, if not elegant, scripts. The cost of brevity, as if often the case with tools of this sort, is directly proportional to one's ignorance of expect's features and how they are implemented. And, if you'd like to approach Tcl by way of example, expect is as good a choice as I've come across.

This guide, on the other hand, is often a discouraging chore to read. It's as if a shoebox of index cards, each detailing one specific feature, was sorted through and applied to flesh out the book's outline. Taken individually, these elements do make sense, providing sometimes useful examples, sometimes curious tangents, sometimes tedious cautionary tales of edge cases. Taken as a whole, it's difficult to see the forest for the trees in this guide. One could say this book is good reference material; it is indexed well, and the outline is clear enough. If it had a reference style, I could see that point.

The book however has an expository form. It employs inline cross-references and footnotes where a sidebar or a simple table would have been a welcome relief from flipping back and forth. These research-style choices enforce the idea that the book was assembled from notes, and never quite realized as a whole guide. As a result, it's closer in feel to a set of anecdotes than a reference guide. It is a style that, as an instructor, I find often discourages users, primarily beginners or others who do not have a formal technical education.

Expect is of course a valuable tool. I'm grateful to the author for making it and sharing it. I'm also surprised, however, that in the last 15 years no one has thought they could do a better job in explaining, and therefore promoting, such a useful application.
(Review Data Last Updated: 2008-09-30 05:39:30 EST)
02-11-07 5 (NA)
(Hide Review...)  best reference to Expect
Reviewer Permalink
Exploring Expect delivers as the essential reference for any programmer who uses Expect for automation. I have written literally thousands of lines of Expect for automating testing, switch maintenance and data creation. This book describes all the different aspects and utilities provided by Expect. One of the more esoteric parts of expect is the keyword exp_internal which causes the expect interpreter to print, in great detail, how it attempts to match patterns to output from any spawned command. Also, the tracing capability is excellent. You can literally see each line as it executes.

Overall, this book is an excellent description of the expect language and it contains many examples.
(Review Data Last Updated: 2008-06-05 20:15:14 EST)
11-23-06 3 1\1
(Hide Review...)  Exploring Expect (1994) good but badly needs updating
Reviewer Permalink
Expect is a language that allows users to simulate users for the purpose of automating certain tasks. What Expect does is open a virtual terminal for the process to be run, then looks for certain things in the ouptut from that program and reacts accordingly. Expect as a tool provides methods for automating the creation of expect scripts and more. Expect can be an excellent tool for regression testing from a command line.

When I first started learning Expect, this book was extremely helpful years ago. Back then, this book would have easily gotten five stars from me. Since then, it has become rather dated. It seems that Don Libes could do very well for the Expect community by publishing an updated PDF much in the same way as Subversion publishers have done. This allows O'Reilly to continue selling the hard-bound materials, yet provide us with more updated materials on the web. The hyperlinks included in the book are often broken (who woulda' thunk it after 12 years?).

Not only does the book need to be updated, but because the use of command-line environments has decreased so much over the past 12 years, the need for text-based testing has generally left us. Where the need lies now is in gui-based testing. That doesn't mean that Expect has lost its usefulness, though the amount of usefulness has dramatically decreased.

So, if you need to automate the use of a text-based application interactively, this book will help you with tools to do it. If you're trying to automate a GUI, this is not the resource for you.

Book hits:

o Written well enough with good examples (enough to get users started)
o Still useful reference if you need Expect
o Easy to understand for programmers / script writers.

Book misses:

o Desperately needs to be updated
o Hyperlinks no longer work
o Title misleads users in today's GUI-based world
o Does not address the needs of users automated GUI-based applications
(Review Data Last Updated: 2007-07-04 15:11:57 EST)
11-22-06 3 (NA)
(Hide Review...)  Exploring Expect (1994) good but badly needs updating
Reviewer Permalink
Expect is a language that allows users to simulate users for the purpose of automating certain tasks. What Expect does is open a virtual terminal for the process to be run, then looks for certain things in the ouptut from that program and reacts accordingly. Expect as a tool provides methods for automating the creation of expect scripts and more. Expect can be an excellent tool for regression testing from a command line.

When I first started learning Expect, this book was extremely helpful years ago. Back then, this book would have easily gotten five stars from me. Since then, it has become rather dated. It seems that Don Libes could do very well for the Expect community by publishing an updated PDF much in the same way as Subversion publishers have done. This allows O'Reilly to continue selling the hard-bound materials, yet provide us with more updated materials on the web. The hyperlinks included in the book are often broken (who woulda' thunk it after 12 years?).

Not only does the book need to be updated, but because the use of command-line environments has decreased so much over the past 12 years, the need for text-based testing has generally left us. Where the need lies now is in gui-based testing. That doesn't mean that Expect has lost its usefulness, though the amount of usefulness has dramatically decreased.

So, if you need to automate the use of a text-based application interactively, this book will help you with tools to do it. If you're trying to automate a GUI, this is not the resource for you.

Book hits:

o Written well enough with good examples (enough to get users started)
o Still useful reference if you need Expect
o Easy to understand for programmers / script writers.

Book misses:

o Desperately needs to be updated
o Hyperlinks no longer work
o Title misleads users in today's GUI-based world
o Does not address the needs of users automated GUI-based applications
(Review Data Last Updated: 2007-02-11 20:32:48 EST)
12-18-05 4 0\1
(Hide Review...)  Cool
Reviewer Permalink
Have you ever wondered how to create 12000 principle in kerberos from a list of username and passwords, maybe the data is stored in some mysql database? Yeah I had to do that and this book came to my aid.

I have found Expect a usefull companion in many arcane system administration task and this text by Don Libes (many of the examples exists as papers online) is an excellent 'cookbook' and a great starting point.

autoexpect is also a cool simulation tool. try it
(Review Data Last Updated: 2007-07-04 15:11:57 EST)
12-17-05 4 (NA)
(Hide Review...)  Cool
Reviewer Permalink
Have you ever wondered how to create 12000 principle in kerberos from a list of username and passwords, maybe the data is stored in some mysql database? Yeah I had to do that and this book came to my aid.

I have found Expect a usefull companion in many arcane system administration task and this text by Don Libes (many of the examples exists as papers online) is an excellent 'cookbook' and a great starting point.

autoexpect is also a cool simulation tool. try it
(Review Data Last Updated: 2006-11-20 10:18:25 EST)
03-11-05 4 1\1
(Hide Review...)  Good Introduction
Reviewer Permalink
I came across Expect while I was trying to find a programming language to automate certain tasks in my experiments. After seeing how practical it was with automating command line sessions and I decided to get this book.

The book covers many topics relevant to developing Expect programs along with a good introduction to Tcl, which made it quicker for me to ease into writing Expect code. The book is self-contained and after reading a few chapters, I was able to automate FTP and SSH sessions with Expect programs. The book is very useful if you are a beginner Tcl/Expect programmer. However for some advanced topics, I found myself searching for answers on the man pages and the Internet.

In summary, I recommend this book for people, who need a good introduction to Expect but don't want to start from Unix man pages.
(Review Data Last Updated: 2007-07-04 15:11:57 EST)
03-10-05 4 (NA)
(Hide Review...)  Good Introduction
Reviewer Permalink
I came across Expect while I was trying to find a programming language to automate certain tasks in my experiments. After seeing how practical it was with automating command line sessions and I decided to get this book.

The book covers many topics relevant to developing Expect programs along with a good introduction to Tcl, which made it quicker for me to ease into writing Expect code. The book is self-contained and after reading a few chapters, I was able to automate FTP and SSH sessions with Expect programs. The book is very useful if you are a beginner Tcl/Expect programmer. However for some advanced topics, I found myself searching for answers on the man pages and the Internet.

In summary, I recommend this book for people, who need a good introduction to Expect but don't want to start from Unix man pages.
(Review Data Last Updated: 2006-07-06 11:32:08 EST)
03-19-04 4 2\3
(Hide Review...)  Nice reference to have
Reviewer Permalink
The good thing about this book is that it gives one a basic back ground of TCL before delving into Expect which, makes it an excellent "quick" reference book to have on the shelf. The only drawback I can really think of is that it is not extensive as it should be to make it an exhaustive reference guide.

Nice book. Worth the money you pay.

(Review Data Last Updated: 2007-07-04 15:11:57 EST)
03-18-04 4 2\2
(Hide Review...)  Nice reference to have
Reviewer Permalink
The good thing about this book is that it gives one a basic back ground of TCL before delving into Expect which, makes it an excellent "quick" reference book to have on the shelf. The only drawback I can really think of is that it is not extensive as it should be to make it an exhaustive reference guide.

Nice book. Worth the money you pay.

(Review Data Last Updated: 2006-07-06 11:32:08 EST)
06-12-03 2 1\6
(Hide Review...)  No other choice
Reviewer Permalink
If you are a beginner and you survived using this book, consider it as an accomplishment. This book is quite difficult to understand, it takes a lot of testing. Even a short example cannot quite explained by the author properly. The way the author explains something he thinks that all the audience are like John Ousterhout.

This book gave me a headache browsing back and forth looking for some answers. However, I will give Don Libes a 2* because of the effort. Too bad there is really no alternative out there. Once I learned Expect from trial and errors and more headaches I can probably write a better one.
(Review Data Last Updated: 2006-07-06 11:32:08 EST)
05-13-03 2 2\4
(Hide Review...)  Anticipate a long and painful reading session
Reviewer Permalink
I bought the book because I needed to create a script with Expect quickly, and nothing on the web really took me step-by-step through what I needed to do. Well, the book is disorganized and anything but to-the-point. I ended up spending a lot of time extracting the essentials, and I had to go on the web for supplementary material anyway! But, as others have noted, there's not much else out there.
(Review Data Last Updated: 2006-07-06 11:32:08 EST)
11-22-02 5 1\2
(Hide Review...)  Your only alternative, buy it....
Reviewer Permalink
This is one of the worst books, written about one of the worst programming languages. The information is scattered and difficult to harvest. Understanding this book and writing code in Expect is a huge headache. However, if you don't buy the book, forget about ever writing reasonably complex programs in Expect. I rated the book five stars because, while not a good book by any standard, it is infinitely better than having no reference at all (which is perhaps why it is so difficult to find information about Expect on the web). It's well worth the [money], but expect to spend some time learning about Expect.
(Review Data Last Updated: 2006-07-06 11:32:09 EST)
08-20-02 2 2\2
(Hide Review...)  I 'Expect'ed more from this book
Reviewer Permalink
This book ranks right down there with so many of O'Reilly's Books. It has a terrible index, examples that bear no resemblance to anything at all real-worldish, and simple problems/solutions are ignored entirely. Too bad there are so few alternatives.

Enter "Expect TCL" into a Google search and you'll come up with some
valuable info that you'll need to compliment this lousy book from
O'Reilly.

Then get yourself a good book on TCL also.

(Review Data Last Updated: 2006-07-06 11:32:09 EST)
05-15-02 3 1\1
(Hide Review...)  Expect more Exploring
Reviewer Permalink
I felt I was given a simple overview of Expect then Expected to understand the complex examples. This book only helped me to get started with the more practical type of problems I was attempting to solve with Expect, but leaves me looking for more practical examples and more explanation on how to complete the scripts I've attempted to create. The things I wish to know more about are the things that aren't explained very well, and the examples aren't very useful towards solving more practical problems.

One particular area I felt the book really lacked in was its explanation of Expectk. It helped me to understand the fundamentals of it, but didn't give a very good example of a practical use for it. It also didn't explain how to do many of the things I wish to do with it. I almost feel like I need another book just for expectk. It also didn't give any kind of decent help on how to install expect and it's needed components.

If your looking to wet your appetite, then this book will work for you, but I expect you'll be left wanting for more, and possibly confused about many things.

(Review Data Last Updated: 2006-07-06 11:32:09 EST)
05-15-02 3 3\3
(Hide Review...)  Its time for Expect Cookbook
Reviewer Permalink
Expect is a life saver in our unix environment and Don Libes has done a great service to the sysadmins of the world by developing this tool. If I could rate expect, it would get five stars and Libes would get a metal for making my job easier. However, for the book, three stars for poor organization (and everything else previously mentioned by a frustrated reviewer from Boston). I get so frustrated paging back and forth in the book, holding the index with one finger, trying to find the little code snippits I need to do the job. The book starts off well enough and there are wonderful techniques which I have been able to adopt, but as the book proceeds, and the examples get more complex, the explanations wane. How 'bout it, you exepect experts, is anyone out there willing to develop the "Expect Cookbook"?
(Review Data Last Updated: 2006-07-06 11:32:09 EST)
  
                  Reader Reviews 1 - 16 of 16                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)