#!/bin/sh -f
#### I use sh instead of csh because
#### hesinfo seems only returns $? signal when in sh, not in csh...

#### copy right statement                                                ####
####                                                                     ####
#### Sept 2, 2006 copyright by Takehiko Nagakura. All rights reserved.   ####
#### Written by takehiko nagakura, Massachusetts Institue of Technology. ####
#### Do not use, copy, or distribute without permission by Takehiko      ####
#### Nagakura. Nagakura will not be responsible for any consequence      ####
#### of running this program.                                            ####
####                                                                     ####
#### For information, send e-mail to takehiko@mit.edu                    ####
####                                                                     ####

#### This CGI gets the frame contents from user submsion at
#### http://cat.mit.edu/4.560/register/form1.html
#### I tried to be as security concious as possible...
#### User response is returned in the environmental variable, $QUERY_STRING

outputdir=/arch3/people/arc/4.560/register/current

echo "Content-type: text/html"
echo ""

##### displaying the result
echo "<h3> 4.560 Project Registration </h3>"
echo "(alphabetically ordered via your accountnames)<p>"
cd $outputdir
people=`ls -1`
for var in $people
do
 cat $var
done



#echo $#argv
# echo $argv[1] | sed "s/\\//g" | sed 's/\^/\"/g' | sed 's/|/ /g' 
#while ($#argv)
#  echo $argv[1] | sed "s/\\//g" | sed 's/\^/\"/g' | sed 's/|/ /g' 
#  shift argv
#end
