Running update31 and handin31

You will use update31 to get the starting point for each lab assignment in this class and you will submit your solutions using handin31.

Do this before you run update31 for the very first time:

Create a subdirectory in your home directory named cs31:
  $ cd
  $ mkdir cs31
	

Running update31

Before starting each lab assignment, run update31. It will create a new subdirectory named the current lab number in your cs31/labs/ subdirectory, and may additionally copy over some starting point files into this directory:
  $ update31
  Creating /home/tnas/cs31/labs
  Creating /home/tnas/cs31/labs/01
  Adding /home/tnas/cs31/labs/01/Makefile
  Adding /home/tnas/cs31/labs/01/lab1.c
	

You should work from within this subdirectory on all your lab 01 (or the appropriate lab number) assignments:

  $ cd
  $ cd cs31/labs/01
  $ pwd
  /home/your_user_name/cs31/labs/01
	$ vim lab1.c
	 

If I ran update31 before starting lab 1, I'd see the following:

  $ update31
  Creating /home/tnas/cs31/labs/01
  
Then when I worked on my lab 1 assignments, I'd make sure I was working from within my cs31/labs/01 subdirecory:
   $ cd
   $ cd cs31/labs/01
   $ pwd
    /home/tnas/cs31/labs/01
   $ vim lab1.c
	 
If I ever discover I'm working in the wrong directory, I can move the file from the wrong directory into the correct one using the mv command:
   $ mv lab1.c  ~tnas/cs31/labs/01/.
   

Running handin31

When you are ready to submit your solutions to the current lab assignment, run handin31 (you can run it from anywhere). For C programs, do not submit .o or executble files. Submit only .c, .h and Makefile (run make clean before submission); I will build .o and executables from your Makefile and C source and header files.

handin31 needs to be set up by to submit each assignment, so if you do not see something like the example run below, it may not be set up correctly. Please email me to let me know that there are problems with handin31. I should have it set up at least 3 or 4 days before a given lab assignment is due.

An example run of handin31:

****************************************************************************
********* HW01:  (cs31/labs/01) -- due by 11:59 pm, Friday Sept 14 *********
****************************************************************************

Hi Tia:

This program allows you to turn in your labs and assignments.
Enter 'h' to hand in labs and assignments
Enter 'v' to view the files you have turned in
Enter 'q' to quit

handin> h
You are turning in HW 01 in cs31/labs/01.

The following files will be turned in:
        Makefile 
        lab1.c

Enter 'h' to hand in labs and assignments
Enter 'v' to view the files you have turned in
Enter 'q' to quit

handin> v

Tia, you have turned in the following files:

  labs 01:
      09/05/2012 14:04   -> Makefile
      09/05/2012 14:04   -> lab1.c  

Enter 'h' to hand in labs and assignments
Enter 'v' to view the files you have turned in
Enter 'q' to quit

handin> q
	
You can run handin31 multiple times before the due date of the assignment. handin31 access will be cut off after the due date, so make sure to submit your lab assignments prior to the due date even if they are not complete.