Procedure for Submitting Programs Using Typescript
Write your source code according to the problem instructions, using the
filename given in the project description. Compile your program and test
it until you are satisfied that it is correct and you are ready to submit
it for grading.
You will then use the script command to create a typescript file. The
typescript file is to contain the source code, compilation, and the output of
4 or 5 runs. You may use your own data unless the problem specifies the
test data.
To make the typescript file, follow the example shown below for a program
that is called test.c This sample shows only two runs.
umbc9[100]% script
umbc9[101]% cat test.c
umbc9[102]% cc test.c
umbc9[103]% a.out
This is a test.
Please enter an integer: 5
You entered a 5.
umbc9[104]% a.out
This is a test.
Please enter an integer: 7
You entered a 7.
umbc9[105]% exit
At this point you have made a file called typescript. If you give the
unix command, ls, you will see that there is a file called typescript.
You should rename this file, since this is the proof that you actually
completed the assignment. Running another script would overwrite any file that
is already named typescript. To rename the file, I would suggest using:
mv typescript test.scr
Specifically, if you have written a program called circle.c and you are ready
to turn it in, you would do the script as shown above and then rename the
typescript file circle.scr
At this point you should use more to look at the .scr file you just
made. If you are satisfied and want to turn it in, email the .scr file to
burt@cs.umbc.edu as a pine attachment.