home *** CD-ROM | disk | FTP | other *** search
- UUHOST 2.1
- ==========
-
- This is uuhost 2.1
-
- It is a new [and as far as I'm concerned, better :-] program.
- It needs not run as root, the databases are smaller (text only),
- and does more for me than all others have done so far :-)
-
- Uuhost reads the UUCP maps which live in a directory, and builds a
- smallish database, containing just enough data to read the UUCP and
- USENET information from the maps.
-
- - Edit the Makefile. Set the variables described at the top of the
- Makefile to desired values.
-
- - Do a `make'. This should produce
- uusplit executable
- uulookup executable
- uuhost shell-script
- uuhost.1 manual page
-
- - Do a "make install"
- This will copy the uuhost program to your LOCALBIN directory,
- uusplit to your BINDIR directory, and uulookup to your
- LOOKUPBINDIR directory. Note: Neither BINDIR nor LOOKUPBINDIR
- need not be in the user's path.
- Please install the manual page `uuhost.1' manually.
-
- - Run "uuhost -l" It should show you a list of contents of your
- maps directory.
-
- - Try "uuhost -r u.usa.ca.1" or similar. That should work too.
-
- - Now run "uuhost -index" This will take a while. The index is
- being built. (should not take much longer than five minutes)
-
- - Try "uuhost hostname" where hostname is a host that you know
- about.
-
- - Set up "uuhost -index" so that it runs once a day. This can be
- done via crontab:
-
- 00 07 * * * uuhost -index
-
-
- - Congratulations. Finished.
-
- - If you have problems, bugs or suggestions, please contact me.
- My name is Jan-Piet Mens, and my address is
- <jpm@Logix.DE>
-
- INTERNALS
- =========
-
- uuhost -index
- =============
-
- This program reads all files in the MAPSDIR directory.
- Here is the map entry from the file `u.deu.2' (line 1451) for my site:
-
- #N logixwi, logix.de, .logix.de
- #S Tandon 486/25;SCO UNIX 3.2.2
- #O Logix GmbH
- #C Jan-Piet Mens
- #E postmaster@logixwi.logix.de
- #T +49 611 309797
- #P Moritzstrasse 50, D-W-6200 Wiesbaden, Germany
- #L
- #W cs@Germany.EU.net; 910228 / bs@Germany.EU.net ; 911016
- #U unido
- #
- logixwi unido(HOURLY)
- logixwi .logix.de
-
- The `#N' entry contains three names (I call them hostnames, although that
- is not quite correct :-)
- The `uusplit' program gets the `#N' line passed to it, prepended by a
- line number (produced by grep). It will split that line into individual
- hostnames, producing:
-
- logixwi u.deu.2 1451
- logix.de u.deu.2 1451
- .logix.de u.deu.2 1451
-
- These lines are put into the UUHOSTINDEX database. `uuhost -index' does
- this for each `#N' in all files in the MAPSDIR directory. The database is
- then sorted by the first field.
-
- When `uuhost' looks for a hostname, it parses (with help of `uulookup') the
- database, finds (or doesn't) the desired entry, and Charly 's your uncle.
-
- Problems, Praise & Bugs
- =======================
- Please direct these to Jan-Piet Mens <jpm@Logix.DE>
-
- Thanks! to ...
- ==============
-
- Mon Oct 21 20:38:26 MET 1991
- From: btr.com!thad (Thaddeus P. Floryan)
- Message-Id: <9110211245.AA09299@public.BTR.COM>
-
- One comment: on my systems (3B1, CT MightyFrame, etc.) the
- "uuhost -index" would abort due to "Cannot fork: too many processes."
-
- Finally discovered the problem to be ksh. By using /bin/sh it
- worked fine per:
-
- $ sh uuhost -index
-
- Thanks for the great program!
-
- Thad Floryan [ thad@btr.com (OR) {decwrl, mips, fernwood}!btr!thad ]
-
- Tue Oct 22 18:28:27 MET 1991
- Thad Floryan [ thad@btr.com (OR) {decwrl, mips, fernwood}!btr!thad ]
- Added #F expansion.
-
- Tue Oct 22 19:15:05 MET 1991
- <pat@rwing> (Pat Myrto)
- "Suggest adding option to produce mail address. "
- I've added -u for doing it. Thanks.
-