The Gsubmit Program

To submit homework assignments electronically, 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 in your csa account called "hw##", where ## is the two-digit homework assignment number (01, 02, ..., 10, 11, etc.). This is done using the mkdir command: mkdir hw05

Copy all files necessary for that homework assignment into the new subdirectory, using the cp command:
cp prob1.txt hw05

Be sure to copy only the files you need to submit into this subdirectory.

Use gsubmit to submit the entire subdirectory: gsubmit cs450 -cp hw05

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, then, to submit a file myfile.c to subdirectory hw05, type: gsubmit cs450 -cp myfile.c hw05

To resubmit a file:

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

To list all files which you have submitted:

To list all files which you have submitted, type: gsubmit cs450 -ls

To look at a file which has already been submitted:

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

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.

(This page was adapted with minimal changes from David Metcalf's Cs 112 web site.)