Submitting Class Assignments
Cleaning up before submitting
Please delete any unnecessary files from your directory before submitting. After cleaning up, it's a good idea to run a quick check just to make sure that your application still works.
Submitting
Use an SSH client to connect to a FarmShare machine (e.g. cardinal.stanford.edu). Upload your files to some directory in your AFS space (i.e. your home directory). You should use a separate directory for each project. The submit script sends all files in the current directory.
If you haven't uploaded files to a FarmShare machine before, you can use the scp (secure copy) commmand on the MacOS Terminal to copy a directory, as follows:
scp -r local/path/to/folder SUNetID@cardinal.stanford.edu:~/remote/path/to/folder
scp -r ~/Desktop/cs142/project1 webace@cardinal.stanford.edu:~
Note: For projects 4 and later, you will need to submit your entire working directory because there are hidden files used to run your project. Do not manually upload individual files. We highly recommend taking the time during projects 1 to 3 to get used to uploading entire directories to your AFS space. Please contact the staff if you need assistance with this.
In addition to including any deliverables required by the project
instructions, you should include a file called ID
that includes your SUID, your leland username, and
your full name (last-name-comma-first-name). For example:
052340342 gluu Luu, Gary
From your project directory, type "/usr/class/cs142/bin/submit" and
answer the prompts.
When prompted "Which assignment are you submitting?" enter the project
number, e.g. 1 for Project 1.
You may submit multiple times. Your last submission is the one we'll
count, as well as any late days used for that last submission.
Note: if you are planning to use late days for an assignment, and you
have already submitted before the due date, please make sure your
most recent submission contains a file late, which should
contain a note stating that you will be using late days for this
assignment. Otherwise we may grade the assignment you have already
submitted.
Here is an example submission of project 1 (all projects for this class are individual, so you should always answer "n" to the question about working with a partner):
corn22:~/project1> /usr/class/cs142/bin/submit The script is used for electronic submissions for CS142. [If you're having trouble, try running it on the corns.] Submitting assignment for leland user: gluu What is your real name? => Gary Luu If you worked on this assignment with a partner, we expect the team to submit one version, giving both names so we can properly credit it. Did you work on this assignment with a partner? (y/n) => n Which assignment are you submitting? => 1 Directory where your assignment lives? (relative paths are ok) => . Looking for an ID file in your project directory...OK Checking to make sure the project directory is clean...OK Checking the size...OK It is currently 01/09/09 11:06:07 AM Checking on asssignment due date....on-time! SUBMIT SUCCESS! Gary Luu (gluu) submitted 1.
Checking your submission
Once you have gone through the submission process, you can check to make sure your submission was received. To do this, enter a command like the following on the machine where you submitted your assignment:
ls -l /usr/class/cs142/submissions/number/$USER-*
(Replace number with the assignment number). This will list all of the files that you submitted. Note that you will not be able to open any of the files in the submission directory, though you can run commands like ls to view the file names.