"Submit" Script Instructions
Students submit their assignments with the submit program. The syntax is
submit [assignment [course]]
The assignment parameter is the directory name designated by your instructor as the name of the directory or file to be submitted. This directory (or file if there is only one file to be submitted) must be in the current directory. If there is only one choice for either then that choice will be selected. For example: user fred is registered in CSCI1100, and there is only one assignment to be submitted, which is named "jellybean.java":
fred@bluenose:~$ cd cs1100 fred@bluenose:~/cs1100$ ls -l -rw------- 1 fred csugrad 534 Oct 11 2000 jellybean.java fred@bluenose:~/cs1100$ submit submit SUCCEEDED
If fred had been in two courses, and both wanted something (file/directory) assign1 to be submitted, then:
fred@bluenose:~$ cd cs3110 fred@bluenose:~/cs3110$ ls -l drw------- 1 fred csugrad 534 Oct 11 2000 assign1 fred@bluenose:~/cs3110$ submit Please select the course: 1. cs3110 2. cs3132 Enter Number (1-2): 1 Please select the assignment: 1. assign1 2. assign2 Enter Number (1-2): 1 submit SUCCEEDED
Alternatively, fred could have typed:
fred@bluenose:~/cs3110$ submit assign1 cs3110
and achieved the same effect.
Submit submits only one "thing", so if there is more than one file in the assignment, then the "thing" to be submitted is the directory containing all the files.
The "submit" operation can be performed more than once, but it will overwrite the previous submission unless the new submission is past the assignment due time, in which case the last submission that was on time is kept in parallel to the latest late submission.
Submit has a number of error checks, and hopefully any problems will be detected and reported. Submit imposes size limits on the items it is copying and also declines to copy executable, object, and class files, since usually these can be regenerated from the source code, and markers like to verify that the human written source code does in fact produce the output desired rather than just the executable producing the desired result. For this reason, if there was anything special you did to make your program run, it is probably prudent to include a README file in a directory, a Makefile that will do the compiling, and/or comments at the top of the code describing any special instructions, as well as your name, email address, and Student ID. Finally, if you think there is something wrong, then you can invoke the debugging code to see what is going on:
fred@bluenose:~/cs3110$ DEBUG_SUBMIT=2 submit
Instructions for MkrSetup
Instructors need to setup a destination for assignments to be submitted to.
- Designate the OS user that will be "the marker".
- Get this person and their course added to /var/marker/markers
- The "course" is the format that it appears in /var/postfix/lists/all-xxnnnn-ss, so a marker must be designated separately for cs1100-01 and cs1100-02.
- Once the user is designated, login as that user and run the command.
mkrsetup
- You will be presented with a menu of options.
Marker Setup [ prof0000 [cs0000] (cs0000) ] 1. Select a course 2. Add an assignment 3. Delete an assignment 4. Change an assignment due date 5. List assignments 0. Exit Enter selection: - This program will edit the file ~/marker/valid.course. If you so desire you can edit this file directly. Theoretically, if you want to mark two sections in the same directory and file, you can soft link the valid file for one section to the valid file for another.
-
Adding an assignment
- Enter selection: Choose option 2
- Enter assignment #: 6 When prompted for assignment number, type a sequence number.
- Enter src assignment file/dir: assign6 This is the file or directory that is the name that student should name their assignment as an entry in the then current directory.
- Enter dest assignment directory: Assign6 This is the directory in the marker directory where you should find the submitted assignments.
- Enter assignment due date: 5 May 2002 23:59 This is the date/time after which assignments will be marked late.
-
Find submitted assignments in ~/marker/course/destdir/username.
-
submit also has a number of configuration files that it consults. The list of marker accounts for each course is in /local/data/submit.markers. In terms of the maximum size that a file or directory can be, etc. this is drawn from the submit.cfg file. The last value wins: First it reads its default values, then it reads the system-wide lib_dir/submit.cfg, then ~prof0000/marker_dir/submit.cfg, then marker_dir/submit-courseno.cfg. To modify the parameters, copy /local/pkg/submit/root-submit/lib/submit.cfg to ~prof0000/marker, and edit it.


