Objectives

After completing this tutorial, you will be able to:
  1. Understand the purpose of using Expect
  2. Know how a few companies uses Expect
  3. To use Expect to do simple automations.

Before starting this tutorial, you should:

  1. have an account on the HP machines of the Cobra cluster
  2. familiarize yourself with the HP-UX environment
  3. know your fundamental UNIX commands (cd, chmod, ln, mkdir, etc.)
  4. know how to use a text editor (vi, emacs, etc.) available on the HP machines of the Cobra cluster
  5. Read the Conceptual Overview frame of this tutorial page
  6. Make a soft link from your home directory (on the HP machine) to a binary file, expect , in my home directory (on the HP machine)

    For example:

    ln -s ~dtly/usr/local/src/expect-5.19/expect expect