(Latest Revision: 08/31/00)

EXAMPLE OF A TOP-LEVEL SCRIPT


This document is a sample of a script of some test runs of a
program.  It was produced by using the script command and running
the program in this directory called
"sampleProgramSubmission-level-01" twice, with different test
responses input to it.  We can see from the script that the
top-level program functioned correctly.  (The letters you see in
boldface are what I entered from the keyboard.  Everything else
is output from the program or the shell.)

--------------------------- start of script ---------------------------
Script started on Thu Feb  5 23:06:08 1998
Thu Feb  5 23:06:09 PST 1998
john@omicron: ls p*
p1.cpp  p1.scr  p2.cpp  p3.cpp
john@omicron: a.out
Here is the message.
Would you like to see a pattern?  Answer y or n: n
john@omicron: a.out
Here is the message.
Would you like to see a pattern?  Answer y or n: y
Now here is the diamond pattern of stars.
Would you like to see a pattern?  Answer y or n: y
Now here is the diamond pattern of stars.
Would you like to see a pattern?  Answer y or n: y
Now here is the diamond pattern of stars.
Would you like to see a pattern?  Answer y or n: n
john@omicron: exit
john@omicron: 
script done on Thu Feb  5 23:07:09 1998