APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed


© December 2003 Tony Lawrence

Scripting language to drive other programs.

The man page for "expect" is excellent, but I do recommend the book also.

Two beautiful things about expect are that it can make decisions based on how the driven program responds, and that it can pass control back to you - so, you can, for example, use it to automate the horrid, semi-repetitive part of some task and then turn the reins back to you.

See A Y2K Problem solved with Expect for an example of using Expect.

The only thing I don't like about it is its TCL roots and syntax: tcl is a simply awful language for handling strings, and of course strings are what you mostly deal with in scripting other programs.

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> expect

Inexpensive and informative Apple related e-books:

Take Control of Parallels Desktop 12

Take Control of OS X Server

iOS 10: A Take Control Crash Course

Digital Sharing Crash Course

Take Control of Numbers

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

A Perl script is "correct" if it gets the job done before your boss fires you. (Larry Wall)

Linux posts

Troubleshooting posts

This post tagged:





Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode