(Latest Revision: 02/05/98)

ILLUSTRATION OF HOW TO MAKE A SCRIPT OF A TEST SUITE

The example interaction below shows (in boldface) everything I typed at the computer in order to make a script of the kind required when you turn in your programming assignments. Of course, everything the computer typed appears here too.


john@omicron:~/C++ script p1.scr
Script started, file is p1.scr
Thu Feb 5 23:06:09 PST 1998
john@omicron:~/C++ ls p*
p1.cpp p1.scr p2.cpp p3.cpp
john@omicron:~/C++ a.out
Here is the message.
Would you like to see a pattern? Answer y or n: n
john@omicron:~/C++ 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:~/C++ exit
john@omicron:~/C++ Script done, file is p1.scr
john@omicron:~/C++ cat p1.scr |col -b >temp
john@omicron:~/C++ mv temp p1.scr