CSC 101 / CPE 101:
Fundamentals of Computer Science 1



The "handin" process

All program assignments, and occasional lab tasks, will be submitted using the handin facility. As with many technology tasks, there's both a novice and an expert way to approach the process. And, once again typically, because the novice approach omits a few potentially intimidating initialization steps, it actually requires more typing on an ongoing basis than does the more advanced approach.

This description will begin by explaining the basic or novice approach. If you are satisfied with that, you can just continue to use it throughout this term (though later courses will likely required you to move beyond this). If you are interested, however, once you have mastered the basic approach, feel free to then move on to the intermediate and/or advanced versions.

The Basic Process

Before you can handin your assignment, you must:

Then, to use the handin facility at this level, you will perform at least three steps:

  1. Change directory:

    Use the Unix cd command to move to the location where you have stored the files you plan to submit. For example:


  2. Preliminary Set-up:

    Whenever you login to your Central Unix account to handin an assignment, the very first thing you should do is to execute the exact command shown below:

    unix prompt % source /ulib/csc/lib/101paths

    Notes:

    You need to do this only once per login session. If you forget, and don't do it, you'll get an error when you try to use handin (the system will tell you it is not able to find the handin command). If you forget that you already did do it at least once since logging on, and do it again, that won't hurt anything (it'll just give you that same confirmation message again).

    Alternatively, if you don't want to have to bother type this "source" command every time you log in to submit a file (although you will still need to use the "handin" commands described below), see the Advanced Features section at the end of this document.

  3. The actual handin process:

    To hand in
    for turner's section
    to one of the available assignment folders
    your own homework file(s),
    the complete command is, which you enter after the system-generated Unix prompt (%) indicated, is ...

    if you are csturner's sections:
    % handin csturner Assignment file1 file2 ...

A First Example:

Once you have logged in, and navigated to the directory in which you previously placed the file you want to submit (here, we'll illustrate with a file called TestProgram.java), and want so hand that in to your course and section's Test folder...

if you are in turner's sections, type:
% source /ulib/csc/lib/101paths
% handin csturner Test TestProgram.java



Notes & reminders:

Some Extra Features:

A Second Example

In a Unix session in which you want to login and then:

you would:

if you are in turner's CSC 101, do this:
source /ulib/csc/lib/101paths
You should just get another Unix prompt in response.
handin csturner
You should see a list of open folders, one of which is Pgm1a, so you'll use that in the next command.
handin csturner Pgm1a Something.java OrOther.java
You should see a message saying submission went ok.
handin csturner Pgm1a
You should see a listing of the files you submitted.
logout
This should end your Unix session


Help!!! I did exactly what you said, but....

Some of the most common issues and mistakes in using the handin facility are described on the handin FAQ (frequently asked questions) page.

Advanced Features

There are two more things you can do, if you want.

  1. There is online documentation available for handin that you can access by typing at the Unix prompt: man handin

  2. If you are comfortable editing directly inside your UNIX account, you can eliminate the need to enter that source command during every session.

    In your UNIX directory should be a file called .cshrc.mine to which you can add the appropriate line yourself, and save the result. Or, if there is not one, you can just create a file with that name (note that it contains two "period" characters), containing this line:

    source /ulib/csc/lib/101paths

    Every time thereafter, when you log in, your new .cshrc.mine will cause that command to be executed automatically, and you will never again need to issue that particular command.

    Caution: Editing "dot files" (i.e., files whose name begins with a period) is tricky business. That is, your .cshrc.mine file (and other dot files) contain commands that are executed every time you log in. Whenever you edit them, always take this precaution (this is not just for novices: experienced programmers have learned the importance of doing this, and we encourage you to follow their lead!):

    And, the above is not meant to discourage you! It is meant to give you guidance, so that you will be successful implementing this very useful shortcut.


Site Navigation Links:
Next: The handin FAQ
Instructors currently using handin:
  P. Nico
  E. Rogers
  C. Scheftic

Copyright © 2000 by Carol Scheftic. All rights reserved. Used by permission.
(Thanks to Professor Phil Nico for assistance in setting up this "handin" process.)
Requests to reuse information from this page should be directed to Carol Scheftic.
Page created 29 September 2000; last updated 29 June 2001.