There are a couple of utilities that you should use for submitting your
assignments.
The first of these is the Linux/Unix command script.
It is a program that will
record an entire computer session from the moment it is started and until
you terminate it (by typing exit).
You should use this utility to record what is shown on screen both when
you compile your programs as well as when running them.
Here's an example of using script:
script subm1.txt(The file name subm1.txt is chosen arbitrarily. It is where the screen output will be flushed.)
a.outin the command line. In the case your program has command line arguments, to show that it works properly you should normally run it a few times with various input data (enough so that each line of code gets tested at least once).
exit
If, for example, you had a program source (asst1.c)
and a script (subm1.txt),
you could bundle them all together as follows:
a2ps -M Letter asst1.c subm1.txt -o assign1.ps
This creates a new file named assign1.ps that has both your
program and the script nicely packaged for printing, on standard
letter-size paper.
You can preview this file by using the command (gv is an abbr.of
ghostview, a popular free postscript viewer)
gv assign1.ps
To print this postscript file
use the command
lpr -P[printer-name] assign1.ps
where [printer-name] is a valid printer name, such as
mpljet (in HH-3030),
labljet5 (in C-2003), or
linuxlj (in EN-2036).
Lastly, you may be required to submit your programs electronically. For information on the electronic submission of your files, consult this page.