Checkin Program Instructions


Checking In Assignments

  • Login to a Linux machine (if you aren't on one already). (Try davis)
    Machines in CS network.
    Note: It MUST be running Linux - not Solaris, not WXP (Look at OS column)
  • "cd" to the subdirectory containing the file(s) to check in.
  • type ~cs160/bin/checkin HWx filenames
    "HWx" should be whichever homework you are submitting (such as HW3 or HW1) "filenames" should be replaced with whatever filenames you want so submit (You don't need to submit all of the files at the same time if you don't want to. One at a time is fine as well, they will only overwrite the older files if they Have the SAME name.
  • The checkin program will tell you some messages. Hopefully, they will say encouraging things like "Checkin successful", and the current date/time, and other useful information. It will also tell you if it has made any backups of older files.

    Making Sure Things Were Checked In Right

    1. Login to a Linux machine (if you aren't on one already). (Try davis)
    2. Decide how paranoid you want to be:
      • Type ~cs160/bin/peek and you will be presented with a list of every file you have ever submitted to the checkin program in this class. As well as dates, times, sizes, and the assignment it was submitted for.
      • Type ~cs160/bin/peek HWx (where HWx is the assignment you are checking on) and you will be presented with a list of every file you have ever submitted for that assignment.
      • Type ~cs160/bin/peek HWx filename (where HWx is the assignment you are checking on, and filename is the file you want to look at) and it will dump the contents of the file to your screen. If the file is long, you may want to consider "piping it thru more" (meaning, type ~cs160/bin/peek HWx filename | more. You could also redirect the output to a file, if you wanted to compare it (using diff, perhaps) with a file in your home dir.
    3. Once you feel secure enough that it worked, you can relax.

    Checking Grades

    1. Login to a Linux machine (if you aren't on one already). (Try davis)
    2. Type ~cs160/bin/grade and you will be presented with grades for each of your graded assignments.
    3. Type ~cs160/bin/grade HWx (where HWx is the assignment you are checking on) and you will be presented with with the grade and comments for that assignment.

    Making it easier

    You may not like typing in such long commands. in that case, you can add an alias to your .cshrc for example, yo umay want to add the lines
    alias ci155 '~cs160/bin/checkin'
    alias pk155 '~cs160/bin/peek'
    to your .cshrc and the effect would be that you would only need to type:
    ci155 HW2 myfile.java instead of ~cs160/bin/checkin HW2 myfile.java... and
    pk155 instead of ~cs160/bin/peek.

    An Example

    Lets say you wanted to turn in a file Results.java for HW2:
    % cd cs160/Assign2
    % ls
    Results.java  SomeOtherFile.java  SomeThingElse.java
    % ~cs160/bin/checkin HW2 Results.java
    Checking in files for assignment 'HW2'
    Current time is: Mon Aug  8 12:16:03 2005
    Assignment is ON TIME!
      If you wish, you may turn in another (presumably better)
      version up until Fri Dec  9 23:59:59 2005
      and it will replace this version.
    
    File Results.java was checked in.
    %
    
    Now, suppose you made a mistake and wish to fix it and submit a new copy..
    % emacs Results.java
    % ~cs160/bin/checkin HW2 Results.java
    Checking in files for assignment 'HW2'
    Current time is: Mon Aug  8 13:45:35 2005
    Assignment is ON TIME!
      If you wish, you may turn in another (presumably better)
      version up until Fri Dec  9 23:59:59 2005
      and it will replace this version.
    
    Renaming old Results.java to Results.java.old
    File Results.java was checked in.
    % ~cs160/bin/peek
    Size        Date             Time      Assignment  File
    ----------  ---------------  --------  ----------  ----
         13703  Mon Aug  8 2005  13:45:35  HW2         Results.java
         13814  Mon Aug  8 2005  12:16:03  HW2         Results.java.old
    
      2 Files listed
    %
    

    Some things to keep in mind