#! /bin/csh
# W3 server for emdir
#
set request = ( `head -1 | sed -e 's/\?/ /g'` )
if ("$request[1]" != "GET" ) then
echo 599 unknown request "$request[1]"
exit
endif
if ($#request > 2 ) then
set words = (`echo $request[3] | sed -e 's/+/ /g' `)
echo "
"
echo "$words in EMDIR"
echo ""
echo ""
emdir $words
echo ""
else
cat << EOF
Electron Mail Directory
EMDIR
This is the CERN EMDIR Electronic Mail Directory.
Your search words should be in order:
name [firstname [div [expt [institute [mailadd ]]]]]
A percent sign (%) may be used to replace any missing word,
or as a wild card at either end of, or within, any of the words.
A blank within a parameter must be replaced by %.
- name
- is the name of the person whose entry you wish to see
- firstname
- is the first name of the person
- div
- is the CERN Division of the person
- expt
- is the experiment in which the person is involved (ALEPH,
L3,..)
- institute
- is the abbreviation of the institute to which the person
belongs (e.g. CERN, PISA), (Please consult the Grey Book
'Experiments at CERN' for valid abbreviations.)
- mailadd
- is the electronic mail address of the person
The results will be summarised if many hits are found, more detailed if
only a few.
EOF
endif