From pablo@math.tifr.res.in Mon Apr 1 13:04:29 2002 From: Pablo Ares Gastesi To: linuxers@mm.ilug-bom.org.in Subject: Re: [ILUG-BOM] dictionary Date: Mon, 01 Apr 2002 13:05:06 +0000 Message-ID: <200204010723.MAA22144@anillo.math.tifr.res.in> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5595426915545177078==" --===============5595426915545177078== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit About the dictionary, if you have the dict package installed, here is the HTML part: ------ html -----------------------
----------------------------------- And this is the dict.sh shell script to be put in the cgi directory: ------ cgi ------------------------ #!/bin/bash export SEARCH=$(echo ${QUERY_STRING} | awk 'BEGIN{RS="&";FS="="} \ $1~/^[a-zA-Z][a-zA-Z0-9_]*$/ {printf "%s\n",$2}') echo -ne "Content-type: text/html\n\n" echo -ne "\nSearch results for ${SEARCH}\n" echo -ne "\n
"
PAGER=cat /usr/bin/dict ${SEARCH}
echo -ne "
\n" ----------------------------------- Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA i Phone: 2152971, ext 2666 pablo(a)math.tifr.res.in http://www.math.tifr.res.in/~pablo/ Key fingerprint = 1A 7C 0A 22 5A 75 A4 78 62 6F 64 09 C1 A0 F7 E6 ---------------------------------------------------------------------- --===============5595426915545177078==--