Aug -- Shell Script for phone list
phone.cgi script
#!/bin/sh
#
rm -f /tmp/cgi.err
exec 2> /tmp/cgi.err
set -x
read LINE
echo $LINE > /tmp/line
set `echo $LINE |sed -e "s/&/ /g" -e "s/^M//g"`
eval $1
NAM=`echo $inname | tr \+ " "`
cat << EOM
Content-type: text/html
<HEAD>
<TITLE>Results for query </TITLE>
</HEAD>
<BODY>
<H1>Results of this query </H1>
<P>
<HR>
`anyrow &NAM /u/usr/ray/misc.d/ph.d |\
/u/rdb/bin/report /u/usr/ray/misc.d/phone.cgi`
<P>
<HR>
EOM
</PRE>
</BODY>
</HTML>
Created by
zoperoot
Last modified
2004-06-20 10:52 AM