How to Let Students Submit Their Homework Electronically to You (under Linux Platform Only)
Note: TAs should get a grader account for the course from the course instructor first in order to use this service.
Course cs306 is used below as the example for illustration
The grader accounts, cs306, which is for Course cs306, is used here as the example to illustrate how to use the homework submission service in the CS department.
Before students can use the homework submission command, "cs306submit" in this case, to submit their CS306 homework, whoever holds the grader account for the CS306 course must log in using the grader account, "cs306" in this case, to create a directory called "submissions" under the grader account’s home directory. Otherwise, students will encounter an error saying “Submission has not open yet” when submitting.
The permission on the "submissions" directory must be 700 to avoid security problems. (A command that can be used to do so is "chmod 700 submissions")
When a student uses the submission command "cs306submit" to submit his homework, the submission command will first create a sub-directory, named after the student’s login ID, under the "submissions" directory of the cs306 account. Then, the submission command will copy whatever the student is submitting into the newly created sub-directory. A student can use the submission command to submit their homework multiple times, but only what he submits last is kept.
During submission, a file called "studentlist.txt" is created or appended in the "submissions" directory. The purpose of this file is to store the translation from the students’ login ID to their real name.
After the homework is due, it is suggested that the "submissions" directory should be renamed to a different name, such as submissions-lab1. This serves two purposes: