This directory contains sample files used to demonstrate the use of
scripts with DIGI_NED's query system. It implements a simple WHOIS
server which gets it input from APRS. You can of course make anything
you want with this mechanism! The sky is the limit.

makedb    Unix script I used to create whois.db from a TNC logfile
whois.db  File with the most recent comment data from received stations
whois.sh  Script called from digi_ned.mes, the "?whois" query

This script is very simple and therefore what restricted. It must be called
from the digi_ned directory to find its files.

The information in whois.db is collected from Xastir TNC logfiles using
the script in "makedb". This script has a hard path to my home directory
to collect data from logfiles I have in the .xastir/logs directory. It
uses an old saved logfile called tnc.log.old and the "tnc.log" file in
which Xastir is currently logging its data. Only the most recent entry
for a call (+ssid) is kept. I only take the dutch calls from the logfile.

I call the script this way:

sh makedb > whois.db

This is just a quick and dirty information collection just to show the
principle. A more usefull script could collect information from for example
the Buckmaster CD or the FCC database. Note that programs have to be
short while during the execution the digipeater is stopped. It is just a
very simple mechanism (but also powerful!).

The whois server is called like this by digi_ned due to the "?whois" query
in the digi_ned.mes file:

./Sample.lnx/whois.sh whois pe1dnn

So as argument you get the complete query the user send to the digi, in this
case "whois pe1dnn". The script writes its output to ./Sample.lnx/whois.out.
In digi_ned.mes this output is read and transmitted. After that digi_ned.mes
will cleanup this file.

This is just one of the many things you can do, its nothing more than an
example!
