CSC3320 Assignment 5 25 points due 4/08/02 Dr. Harrison Spring 2002
This assignment consists of a C program, a little busy work and an C-shell script. When complete it should be emailed to the GTA in ONE email (use either attachments (preferred -use pine) or a tar file). His account is slp40@yamacraw.cs.gsu.edu. Printed copies of the files should also be handed to me.
(This is the first step in a Web server program that we will build). Write a program that accepts a command of the form "GET a_file_name HTTP/a_number" and opens the file (if it exists) and copies it to the output. If the file does not exist it should return "404 <inser t the name of the file> not found". It should also use open to create a file descriptor in the main part of the program. Because this is one step in building a more complicated program , you should use a minimal main() routine and put the body of this program into a single function or method. (The method can call other methods, but you should design it so that it can be taken from this program and included in another).
Find the network path between yamacraw and www.ajc.com.
Write a C-shell script to produce a sorted listing of the files in a directory by size in numerical order. Query the user for largest first or smallest first and generate the appropriate sort.