This tutorial was largely stolen from here.
Here is a simple guide that will help you submit all your assignments for CS170. Don't worry: it's easy!
Before we begin to submit an assignment, we need to check for a few things:
cs170-bh
).To submit assignments for this class, we will use a simple command line program called—wait for it—submit
. To start submitting an assigment, type submit
, followed by the name of the assignment. When we are at the prompt, we should see something like this:
star [16] ~/hw1 # submit hw1This means that we are currently in our homework 1 directory, indicated by
~/hw1
, and that we are submitting the assignment hw1
, the first homework assignment.
return
and you should then see
Looking for files to turn in.... Submitting hw1.pdf. The files you have submitted are: ./hw1.pdf ./collab.txt Is this correct? [yes/no]Now, all you need to do is type
yes
and you're good to go! You
are completely done when submit
mentions
Copying submission of assignment hw1.... Submission complete.
Here are some simple rules that you need to know to make sure all of your assignments get submitted properly.
submit
only accepts certain names for assignemts, but they are easy to remember:
hw#
, for each homework assignment.submit
will kindly remind you of all possible assignments.
submit
is only trained to look for certain files depending
upon the assignment. In CS170, we will provide you all of the files
you will need to submit for each homework assignment and project.
If you try to change the name of the file that submit
is
expecting (or the file isn't there), submit
will let you
know what files need to be present for the submission to be successful.
Looking for files to turn in.... Turn in ./interesting_file.something? [yes/no] yes You must turn in a file hw1.pdf for this assignment. Here is the complete list of files you must turn in: hw1.pdf collab.txt Error: submission FAILED.
These will help you make the most effective use of submit
.
submit
the name of the
assignment you are submitting, not the current directory.
yes
/no
], typing in y
is equivalent to typing in yes
(and similarly, n
for no
).
~/
), it is
often best to create a separate folder for each assignment. This is
to avoid having submit
ask you if you would like to submit
every, single, file in your current directory
(including all hidden files used by Unix for its own purposes). Keeping your
assignments organized by making separate directories for each assignment
will make your life easier (i.e. proj1/
,
hw1/
, etc.).
submit
is running,
issue the abort command with the key combination Ctrl-C
.
submit
is a Unix program, so if you need any help
don't forget to check out
our Unix Tutorial
and
information
on connecting to your CS170 account. You can also get a brief description
of submit
using the command submit -h
.
If you have any other questions about submit
or anything else
CS170 related, don't forget to ask your friendly neighborhood staff or post on
Piazza. ☺