This is a quick introduction to the submit program.
You have to be logged into tux. You must use the executable belonging to the instructor. So, e.g., if you are in one of Prof. Schmidt's CS260 sections, you would either:
$ PATH="~kss35/bin:$PATH" $ submit
It might be convenient to create an alias in your .bashrc:
There is a manpage. It's not been installed on the system yet.
$ ~kss35/bin/submit -i cs265 265 Lab1 lab1 l1 due: 13.1.2020 05:00 deadline: 15.1.2020 05:00 Lab2 lab2 l2 due: 20.1.2020 05:00 deadline: 22.1.2020 05:00 Assignment1 a1 HELP Help help h cs260 260 ds HW1-p hw1-p hw1 1 due: 13.1.2020 05:00 deadline: 13.1.2020 05:00 HELP Help help
Some things to note:
cs260
, 260
and ds
are all ways to refer to the same course. cs265
, the first lab can be called Lab1
, lab1
and
l1
$ ~kss35/bin/submit -i -c 260 cs260 260 ds HW1-p hw1-p hw1 1 due: 13.1.2020 05:00 deadline: 13.1.2020 05:00 HELP Help help
Nota bene: This utility is not POSIX compliant. In particular:
For the following examples, consider the following directory:
$ ls -CF 'a b' lab1 README some_file vi_lab
We want to submit lab1 , vi_lab and README to the first lab in CS265:
$ submit Select course from cs260 cs265 Misc ==> cs265 Select assignment from Lab1 Lab2 Assn1 Help ==> lab1 The following files are not included. some_file README vi_lab lab1 a b Enter additional files, one per line. (blank line when done): ==> README ==> lab1 ==> vi_lab Files submitted for Lab1 in cs265: README vi_lab lab1
The -l (long) option shows all aliases. You can use aliases in either case.
$ submit -l Select course from cs260 260 ds cs265 265 unix Misc misc ==> unix Select assignment from Lab1 lab1 l1 Lab2 lab2 l2 Assn1 assn1 a1 Help help h ==> l1 The following files are not included. some_file README vi_lab lab1 a b Enter additional files, one per line. (blank line when done): ==> README ==> lab1 Files submitted for Lab1 in cs265: README lab1
Finally, you can enter all the needed info right on the command line, by using options to supply the course and the assignment, then listing the files as arguments.
$ submit -c 265 -a l1 lab1 vi_lab Files submitted for Lab1 in cs265: lab1 vi_lab
Note, file.2 and file.3 are still in the directory, from previous submissions.
You can overwrite files, but you can not delete files.
You can submit as many times as you want to a given assignment.
If you supply the -v flag, designate a course and assignment, either using options, or, interactively, you will be shown your log file for that submission.
$ submit -v -c 265 -a 2 Log for Assignment 2, in course 265: ---------------------------------------------------- Fri Jan 5 18:39:55 2024 Fri Jan 5 18:43:31 2024 file.1 file.2 README Fri Jan 5 18:43:51 2024 file.3 Fri Jan 5 18:44:04 2024 file.1 README $