CS112 - The Gsubmit Program

To submit homework assignments, use the gsubmit program from your csa account.

gsubmit is an electronic file submission engine which will submit files or directories of files to the grader so they can be marked.

Every file submitted by a given student for a given assignment should have a unique file name. If a file is submitted with a duplicate name it will either overwrite the file or generate an error message.

To make it easy for the grader to find the files relating to a specific homework assignment, all files for each assignment should be stored in a subdirectory called hw1, hw2, hw3, etc. and the entire directory should be submitted.

To submit a homework assignment:

Create a subdirectory "hw#", where # is the homework assignment number. This is done using the mkdir command:
mkdir hw5
Copy all files necessary for that homework assignment into the new subdirectory, using the cp command:
cp prob1.txt hw5
Be sure to copy only the files you need to submit into this subdirectory.
Use gsubmit to submit the entire subdirectory:
gsubmit cs112a1 -cp hw5
If submission is successful a status message will be printed.

To submit a file to an already-submitted subdirectory:

If you only submitted part of the assignment and would like to add another file:
To submit a file myfile.c to subdirectory hw5, type (at the unix prompt):
gsubmit cs112a1 -cp myfile.c hw5

To resubmit a file:

To resubmit a file myfile.c in subdirectory hw5, first unsubmit the file:
gsubmit cs112a1 -rm hw5/myfile.c
then resubmit it:
gsubmit cs112a1 -cp myfile.c hw5

To list all files which you have submitted:

To list all files which you have submitted, type:
gsubmit cs112a1 -ls
To list all files which you have submitted to a specific subdirectory, type:
gsubmit cs112a1 -ls hw5

To look at a file which has already been submitted:

To look at a file which has already been submitted, type:
gsubmit cs112a1 -cat myfile.c
You can store this in a file foo by typing
gsubmit cs112a1 -cat myfile.c > foo
To look at a file which has already been submitted to a specific subdirectory, type:
gsubmit cs112a1 -cat hw5/myfile.c

Where do submitted files go?

Each student who submits an assignment has a subdirectory created to hold his files, in a directory for the specified course. This is called the student's "submission spool directory".

How can the grader tell when a file has been submitted?

Every gsubmit command is automatically logged in a log file, along with a time stamp.

For further information:

Note - The information in this document is taken from the gsubmit man page.
For further information type man gsubmit.