Skip to content

Seattle Unix Group Web Site

Sections
Personal tools
You are here: Home » Meetings » 1995 » Aug -- Shell Script for phone list

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
« July 2010 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 
 

Powered by Plone

This site conforms to the following standards: