Help with A/UX's UUCP!

Richard Todd rmtodd at servalan.uucp
Fri Mar 9 15:53:23 AEST 1990


In article <1990Mar8.020757.6810 at terminator.cc.umich.edu> mike at terminator.cc.umich.edu (Mike Nowak) writes:
>I'm having a terrible time with A/UX's UUCP implementation.  I had it working mostly
>but recently it just collapsed.  I realize it's hard to debug these problems remotely
  Hmm.  I don't have that much problem with A/UX's UUCP implementation.  Read 
on..



>2.  Apparently, rmail doesn't strip off the header and make a replyable address for
>incoming uucp mail.  Mail from outside the system always comes from uucp.
 Hmm.  Seem to recall this happening to me.  If you're a UUCP-only site, 
what you can do is install smail 2.5  and deliver and ditch the Apple mail
software entirely.  That's what I've done, and I have no problems with it.
If you have to handle both UUCP and Internet (SMTP) mail, I don't know what
you do.  


>4.  Does anyone have a working Usenet news "spacefor" for A/UX?  When I tell Configure
>(from cnews) that I have a usg system, it make a spacefor but it always reports that
>I don't have enough space, even if there are 5 or 10 megs free.
   Df formats vary appallingly widely among systems.  Here's the version of 
spacefor I'm using. 
-------------------------clip and save----------------------------------
#! /bin/sh
# spacefor - determine available disk space
# About how many things of $1 bytes will fit in the available space for
# stuff of type $2 ("incoming", "articles", "control", "outbound $3",
# or "archive") without cramping things too badly?
#
# You'll have to change this -- your blocksize, minimum-free-desired amounts,
# and df output format will probably differ, and you may need to name
# your filesystems explicitly.

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}

PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK

# punt to server if necessary
if test -r $NEWSCTL/server
then
	server="`cat $NEWSCTL/server`"
	me="`hostname`"
	if test " $server" != " $me"
	then
		exec rsh $server "PATH=$PATH `basename $0` $*"
		# does not return
	fi
fi

# head off special case
case "$1" in
0)	echo 10000 ; exit 0 ;;
esac

# argument to df, df units, and free space desired (in df units)
dfunit=512			# default unit (bytes)
case "$2" in
incoming)	arg="$NEWSARTS/in.coming" ; desire=100 ;;
articles)	arg="$NEWSARTS" ; desire=2500 ;;
control)	arg="$NEWSCTL" ; desire=1500 ;;
outbound)	arg="/usr/spool/uucp" ; desire=2500 ;;	# ignore $3
archive)	arg="$NEWSARTS" ; desire=1 ;;		# system-specific
*)		echo "$0: bad type argument \`$2'!!" >&2
		exit 2 ;;
esac

# this is set up for the stupid System V df
df $arg | sed "s/.*:/: :/" | awk "BEGIN { nf = 3 ; nr = 1 }
	NR == nr && NF >= nf {
		nb = (\$nf - $desire) * $dfunit / $1
		if (nb > 10000)
			nb = 10000	# ensure representable as integer
		nb = int(nb)
		if (nb <= 0)
			print 0
		else
			print nb
		exit
	}
	NR == nr && NF < nf {		# idiotic Berkeley continuation
		nr += 1
		nf -= 1
	}"

---------------------------clip and save----------------------
Richard Todd	rmtodd at uokmax.ecn.uoknor.edu  rmtodd at chinet.chi.il.us
	rmtodd at servalan.uucp
Motorola Skates On Intel's Head!



More information about the Comp.unix.aux mailing list