Previous Topic

Next Topic

Book Contents

Book Index

Breaking expect Jobs into reusable pieces using include within a Job

When you build your expect Jobs you will find that many of pieces are repeated. Sometimes it is handy to break these pieces into separate jobs and then use the ((include jobname)) directive to build the pieces back up

In the example below, job /Cedars/Protoi_claims_x has a Job include /cedars/include_idx_login.

In the example below that, job /cedars/include_idx_login has a Job include /cedars/include_env and a variable substitution /cedars/database

The last screen shot is the "Preview" of all the pieces put together. In addition, notice the parameter and variable substitution at the top of Job.

See Also

Appendix C - Using expect with EnterpriseSCHEDULE

General guidelines

Using expect’s record feature to capture an interactive session

Common edit changes made to Autoexpect recorded scripts

What to remove from the expect line?

Creating Expect prototype Job Templates