Checkin Program Instructions


Checking In Assignments

  • Login to a Linux machine (if you aren't on one already).
  • "cd" to the subdirectory containing the file(s) to check in.
  • type ~cs161/bin/checkin PAx filenames
    "PAx" should be whichever homework you are submitting (such as PA1 or PA1-R) "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 give 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).
    2. Decide how paranoid you want to be:
      • Type ~cs161/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 ~cs161/bin/peek PAx (where PAx 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 ~cs161/bin/peek PAx filename (where PAx 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 ~cs161/bin/peek PAx 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 ~cs161/bin/grade and you will be presented with grades for each of your graded assignments.
    3. Type ~cs161/bin/grade PAx (where PAx 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, you may want to add the lines
    alias ci161 '~cs161/bin/checkin'
    alias pk161 '~cs161/bin/peek'
    to your .cshrc and the effect would be that you would only need to type:
    ci161 PA2 myfile.txt instead of ~cs161/bin/checkin PA2 myfile.txt... and
    pk155 instead of ~cs161/bin/peek.

    An Example

    Lets say you wanted to turn in a file Results.txt for PA2:
    % cd cs161/Assign2
    % ls
    Assign2.java myTestInp
    % ~cs161/bin/checkin PA2 Assign2.java
    Checking in files for assignment 'PA2'
    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.txt was checked in.
    %
    
    Now, suppose you made a mistake and wish to fix it and submit a new copy..
    % emacs Assign2.java
    % ~cs161/bin/checkin PA2 Assign2.java
    Checking in files for assignment 'PA2'
    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 Assign2.java to Assign2.java.old
    File Results.txt was checked in.
    % ~cs161/bin/peek
    Size        Date             Time      Assignment  File
    ----------  ---------------  --------  ----------  ----
         13703  Mon Aug  8 2005  13:45:35  PA2         Assign2.java
         13814  Mon Aug  8 2005  12:16:03  PA2         Assign2.java.old
    
      2 Files listed
    %
    

    Some things to keep in mind