About the dictionary, if you have the dict package installed, here is the HTML part:
------ html ----------------------- <form name=dict method=get action=http://put_your_webserver_here/cgi-bin/dict.sh> <input type=text name=word value=""> <input type=submit value="Get dictionary definition"> </form> -----------------------------------
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 "<html><head>\n<title>Search results for ${SEARCH}</title></head>\n" echo -ne "<body bgcolor=#FFFFFF text=#000000>\n<pre>" PAGER=cat /usr/bin/dict ${SEARCH} echo -ne "</pre></body></html>\n" -----------------------------------
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA i Phone: 2152971, ext 2666 pablo@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 ----------------------------------------------------------------------