CS330 Project (Fall 2005)--Details


Part 2 (Due December 2)--worth 7%

The following is the detailed marking scheme and submission details.

Marking scheme(out of 17):

A couple of HINTS:

  1. you may find it useful to use waitpid instead of wait. For more on this system call, use man 2 wait.
  2. The piping can be implemented by forking within the child.

Submission Details

  1. Along with your source code and script, you will include a document providing:
  2. You will submit a complete source listing. Your code must be well commented, have appropriate indentation and white space, use meaningful variable names and constants.
  3. You will also submit a script of your run performing the following:
    sleep 9
    sleep 60 %
    sleep 40 %
    ps
    LAUNCH
    LAUNCH
    MODE
    sleep 70 
    sleep 80
    sleep 100 %
    MODE
    ps
    ORDINARY
    date
    touch hello
    ls -l
    rm hello
    ls -l
    MODE
    SLEEP 5
    SLEEP 60 %
    MODE
    SLEEP 40 %
    ps
    LAUNCH
    MODE
    SLEEP 70
    SLEEP 80
    SLEEP 100 %
    ps
    cp /net/share/class-info/cs330/joke.txt joke1.txt
    cp /net/share/class-info/cs330/joke2.txt joke2.txt
    cp /net/share/class-info/cs330/joke3.txt joke3.txt
    cp /net/share/aliases/CS330-001.200530 allofus.txt
    ls -l
    ls -l : sort
    cat joke1.txt : sort
    cat allofus.txt : wc -l
    echo "Hello"
    cat joke2.txt
    env : grep USER
    blah
    peanuts
    EXIT