export PATH=/afs/umich.edu/class/eecs381/bin:$PATHThis command tells your shell where to look to find the submit381 program.
if [ -f ~/.bashrc ]; then . ~/.bashrc; fiNow when you login, the bash shell will run .bash_profile, which in turn will run the commands in .bashrc, updating your path.
echo $PATHYou should see the new eecs381 part of the path at the begining of the output.
You can find more information about using the bash startup files at:
Note: If your shell is not bash, you will have to make changes to your shell initialization files. If you know how to change your shell, you can probably figure out how to make these changes yourself.
submit381 <project-number> <source-file-names>e.g.
submit381 1 P1.cppImportant:You can use shell wildcards to make typing the submit command easier and less error-prone - a file won't get left out. Just be sure your current directory has only the files that you plan to submit, because the wildcard will send all matching files in your current directory:
submit381 0 hello.cpp hello.h
submit381 0 *.h, *.c
submit381 4 *.cpp *.hRemember that Unix is case-sensitive so "hello.cpp" != "Hello.cpp".
The EECS 381 submission program also has a query feature. This allows you to get your total score and bonus level from your last submission if you haven't yet submitted today, but the query does not count as a submission. Only the total score is provided, not the test-by-test results.
Here's the concept: The autograder allows you to submit your code as many times per day as you want, but only gives you feedback on the first two. Say you are finishing early, and want the bonus. You submit your code twice, fixing bugs after getting each feedback, and then submit your code one more time before midnight. If your last fix was good, you have a good score and the early submission bonus. But what if your last fix broke your program and actually got a lower score? But if you submit again tomorrow to get the feedback, you will lose the early bonus!
What to do? Tomorrow (or after midnight today) you can query the autograder to find out if your total score is what you expected, or if some disaster happened, whereupon you will have to fix and resubmit your code - and you will still have two submissions with feedback. The syntax for the query is:
The autograder will email your total score and bonus proportion for the last submission received, if you have not previously submitted today.