uuhosts

John Quarterman jsq at ut-sally.UUCP
Fri Dec 9 08:23:55 AEST 1983


: This is a shar archive.  Extract with sh, not csh.
echo x - uuhosts.1
cat > uuhosts.1 << '!Funky!Stuff!'
.TH UUHOSTS 1L 83/12/08
.SH NAME
uuhosts \- USENET news and UUCP mail information.
.SH SYNOPSIS
.B
uuhosts
hostname ...
.br
.B
uuhosts
-g geographical-region
.br
.B
uuhosts
-g
.SH DESCRIPTION
The \fIuuhosts\fP command is used to look up information about
the configuration of the UUCP mail network and USENET news network
configurations.
.TP
uuhosts hostname ...
for information about a particular UUCP or USENET host or hosts.
The UUCP mail path is given first, followed by the USENET news site information.
Any hosts with names for which the argument is a prefix are shown, e.g.:
.TP
uuhosts ut
gets information about all hosts whose names start with ``ut''.
.TP
uuhosts -g geographical-region
for information about USENET news hosts in a geographical region.
.TP
uuhosts -g Intro
gets an introduction to the USENET news map.
.TP
uuhosts -g Local
gets USENET news site information on the local area.
.TP
uuhosts -g
for a list of known USENET geographical-regions.
.TP
uuhosts
with no arguments gets a short usage message.
.SH FILES
.TP
/usr/local/lib/nmail.paths
UUCP mail path database as produced by \fImkpath\fP and used by \fInmail\fP
(which is called automatically from \fIsendmail\fP on \fIut-sally\fP)
.TP
/usr/local/lib/news/net.news.map
USENET news site information taken from newsgroup \fBnet.news.map\fP
(thanks to \fBcbosgd!map\fP).
.TP
/usr/local/lib/pairs
Raw UUCP mail connection map from \fBparsec!kolstad\fP (thanks again).
.TP
/usr/local/lib/pairs.local
Locally known mail connections.
.SH SEE ALSO
readnews(1), vnews(1), mail(1), nmail(1), sendmail(8)
!Funky!Stuff!
echo x - uuhosts
cat > uuhosts << '!Funky!Stuff!'

LIB=/usr/local/lib
# '@(#) uuhosts 1.6 83/12/08'
if test $# -eq 0
then
	echo 'Usage:	'uuhosts' hostname ...
for information about a particular UUCP or USENET host or hosts, or

	'uuhosts' -g geographical-region
for information about USENET news sites in a geographical region, or

	'uuhosts' -g
for a list of known USENET geographical-regions.
'
	exit 1
fi
paths=$LIB/nmail.paths
# Routing information produced by mkpath for use by nmail.
cd $LIB/news/net.news.map
# This directory should contain the information from newsgroup net.news.map
# that is posted about once a month from cbosgd!map.  The introduction should
# go in a file name Intro, and locally-known information in a file named Local.
if test $1 = -g
then
	shift
	if test $# -eq 0
	then
		ls
		exit 0
	fi
	more $*
	exit 0
fi
for arg in $*
do
	echo UUCP mail path:
	grep '^'${arg} $paths
	echo ""
	echo 'USENET news site information:'
	sed -n -e "/^Name:[ 	]*${arg}/,/^$/p" *
done
!Funky!Stuff!
-- 
John Quarterman, CS Dept., University of Texas, Austin, Texas
{ihnp4,seismo,ctvax}!ut-sally!jsq, jsq at ut-sally.{ARPA,UUCP}



More information about the Comp.sources.unix mailing list