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
Everything that goes to your terminal will now also be recorded in the a file named typescript.script
ls -l
javac *.java
exit
.
/cslab/class/csci235/bin/cleanscript typescript > typescript.clean
a2ps --file-align=fill filenames ...
Some useful options for a2ps
include:
--file-align=fill
tells a2ps to not start each new file on a new sheet.
-1
(that's a one) will make it print 1-up
-o/dev/null
will not actually print, but you'll be
able to see how the page breaks happen.
/cslab/class/csci235/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.
You may want to copy files between an in-lab account and your personal account, or you might want to copy files to/from a partner's account. A fairly easy way to do that is to use the file browser and SSH.
In these examples, we'll assume that you are logged in under one of the
accounts, and that the other account that you want to copy to or from is
named msnerd
; substitute yours.
SSH
cslab25
(or any of the
other cslab machines)
/homes/msnerd
(but with
the correct username)
msnerd
(yours)
msnerd
,
but be sure that the "forget immediately" option is chosen.
msnerd
.
When you're done, disconnect the other home directory. (Don't just close the window.)