You will usually be asked to provide a script file that records you compiling and running your files. Here are the steps to take:
.class
) versions of your
files, using the rm
command. If you want to get rid
of all of the class files, you can use the command
You'll have to be more judicious if you were provided some class files that you need to keep.rm *.class
For a C program, the makefile should let you do make clean
.
Everything that goes to your terminal will now also be recorded in the a file named typescript.script
ls -l
make
for C programs; compile
Java programs explicitly, either one by one or all at once with
javac *.java
exit
.
a2ps --file-align=virtual filenames ...
Some useful options for a2ps
include:
--file-align=virtual
tells a2ps to not start each new file on a new sheet.
-1
(that's a one) will make it print 1-up
--line-numbers=1
number the lines in each file
-o /dev/null
will not actually print, but you'll be
able to see how the page breaks happen.
make handin
if that has been provided. If you have to do it manually, use
something like
/cslab/class/csci245/bin/handin labname filenames ...
The labname (or project name) will be specified in the
assignment. Include all of the files (usually Java source and a
typescript) on a single command.
Be sure that you see the report of successful submission. You can submit
more than once; the last submission can always be found.
Last modified: Thu Jan 24 09:23:30 CST 2013