Exploring Expect (Nutshell Handbooks) by Don Libes

By Don Libes

Count on is readily changing into part of each UNIX user's toolbox. It lets you automate Telnet, FTP, passwd, rlogin, and 1000s of different purposes that usually require human interplay. utilizing anticipate to automate those purposes will let you accelerate projects and, in lots of circumstances, remedy new difficulties that you just by no means may have even thought of prior to. for instance, you should use count on to check interactive courses without adjustments to their interfaces. Or wrap interactive courses with Motif-like front-ends to regulate functions via buttons, scrollbars, and different photo components with out recompilation of the unique courses. you do not even want the resource code! anticipate works with distant functions, too. Use it to tie jointly web purposes together with Telnet, Archie, FTP, Gopher, and Mosaic. Don Libes is the author of count on in addition to the writer of this ebook. In Exploring anticipate, he offers a entire educational on all of Expect's positive factors, permitting you to place it instantly to paintings in your difficulties. In a down-to-earth and funny variety, he offers quite a few examples of difficult real-world purposes and the way they are often automatic utilizing anticipate to avoid wasting you money and time. anticipate is the 1st of a brand new breed of courses in keeping with Tcl, the instrument Command Language that's rocking the pc technological know-how neighborhood. This publication offers an advent to Tcl and describes how anticipate applies Tcl's strength to the recent box of interplay automation. even if your curiosity is in count on or interplay automation otherwise you easily are looking to find out about Tcl and spot the way it has been utilized in actual software program, you can find Exploring anticipate a treasure trove of easy-to-understand and worthy details.

Show description

Read or Download Exploring Expect (Nutshell Handbooks) PDF

Similar unix books

Building a Virtual Private Network

What you are promoting has to be hooked up so that it will compete within the worldwide industry. staff want to know that their company's community is on the market at any time, from anywhere. A digital inner most community (VPN) accomplishes this by using distant connectivity applied sciences that mix latest inner networks with the net to soundly converse details.

Mac OS X Leopard Phrasebook

Mac OS® X Leopard Phrasebook   Brian Tiemann   crucial Code and instructions   Mac OS X Leopard Phrasebook can provide the full command words you must take complete benefit of the Leopard’s hidden and undocumented strength beneath the graphical person interface: time-saving suggestions for successfully operating with documents, folders, the Finder, highlight, textual content records, servers, disks, CDs/DVDs, permissions, printing, purposes, Expos?

DNS & BIND Cookbook

The DNS & BIND Cookbook offers suggestions to the various difficulties confronted by way of community directors liable for a reputation server. Following O'Reilly's well known problem-and-solution cookbook structure, this name is an vital better half to DNS & BIND, 4th version, the definitive advisor to the serious activity of brand name server management.

Additional resources for Exploring Expect (Nutshell Handbooks)

Sample text

Remember, any string with whitespace must be quoted to keep it as a single argument (unless it is already in braces). set "uid(John Ousterhout)" ouster This is not specific to arrays. Any variable containing whitespace can be set similarly. The following sets the variable named "a b". set "a b" 1 From now on when I want to explicitly talk about a variable that is not an array, I will use the term scalar variable. Earlier, I described how to pass scalar variables into procedures—as parameters or globals.

This is precisely how I have written all of the other multi-line examples so far. Fortunately, this style looks a lot like another common style—the C language. Even if you are not used to C, it will be helpful if you adopt the C formatting style—just leave an open brace at the end of the current line and you can omit the backslashes. Consider the following three if commands: if {$count < 0} { puts "count is less than zero" } if {$count < 0} \ { puts "count is less than zero" } if {$count < 0} { puts "count is less than zero" } The first two examples are correct.

Varying Argument Lists Usually procedures must be called with the same number of arguments as they have formal parameters. When a procedure is called, each parameter is set to one of the arguments. However, if the last parameter is named args, all the remaining arguments are stored in a list and assigned to args. For example, imagine a procedure p1 definition that begins: proc p1 {a b args} { If you call it as "p1 red box cheese whiz", a is set to red, b is set to box, and args is set to "cheese whiz".

Download PDF sample

Rated 4.15 of 5 – based on 41 votes