CPS 210 (Duke University) Operating Systems
home calendar topics work resources

Lab 2: Shell Lab

The segment from the CS:APP textbook provides more background on Unix system calls, signals, and control flow.

Update (02/01/13): We made minor changes to the code base to refactor the tcsetpgrp() calls into a seperate function called seize_tty(), which is implemented in helper.c and can be invoked directly from dsh.c.

How to get started

Copy the source code files into a directory, cd into that directory, and type "make". Read the handout. Modify the code as directed in the handout. Type "make" again. Test by running the test programs. (Just type the name of the program preceded by "./".) Repeat.