[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3 Submitting

If you’ve exported my files to your directories, then you should see at least the following files:

$ ls go*
go*     go_bash*    go_lisp 

To run your system, you must edit a file ‘boot.lisp’ that loads your lisp system. This file is called by ‘go_lisp’ in the following script (the contents of which, you can ignore):

#|
exec sbcl --noinform --load $0 --end-toplevel-options "$@"
|#
(load "boot.lisp")
(quit)

Now ‘go_lisp’ is called by ‘go’ which looks like this:

[ -f go_bash ] && bash go_bash
nice -n 20 sh go_lisp
[ -f stop_bash ] && bash stop_bash

Note that before and after we call ‘go_lisp’, we look for any shell commands in ‘go_bash’ or ‘stop_bash’. So, if you want to show your source code, you could edit ‘go_bash’:

cat aa.lisp bb.lisp cc.lisp

Or, if you want to show what output files were generated by your lisp code, you could edit ‘stop_bash’:

cat out.txt

To prepare your weekly handin, one member of your group must run the following command:

 ~timm/bin/handin homeWorkNumber groupNumber lastname1 lastname2 lastname3...

where homeWorkNumber is something like 2c and lastname is the last name of each member of the group. For example:

~timm/bin/handin 2a 22 zedong washington

This command generates a file ‘~/tmp/2print.pdf’ in your ‘tmp’ directory. This file stores a pretty print of what happens when the ‘go’ command (mentioned above) is executed. Here’s a sample file (and a real one would have much more content).

To hand in your homework, print out ‘~/tmp/2print’ and hand it in to the box outside 841a before the Thursday class. Note that:


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 1, 2011 using texi2html 5.0.