Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2A (XREF PATCH) 05/16/85; site neuro1.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!harpo!whuxlm!whuxl!houxm!ihnp4!mhuxn!mhuxr!ulysses!cbosgd!neuro1!usenet
From: usenet@neuro1.UUCP (USENET maintenance)
Newsgroups: net.news.b
Subject: Problems with sendbatch script
Message-ID: <549@neuro1.UUCP>
Date: Mon, 12-Aug-85 19:22:33 EDT
Article-I.D.: neuro1.549
Posted: Mon Aug 12 19:22:33 1985
Date-Received: Thu, 15-Aug-85 00:24:34 EDT
Reply-To: usenet@neuro1.UUCP (USENET maintenance)
Organization: Neurophysiology, Baylor College of Medicine, Houston, Tx
Lines: 28
Keywords: sendbatch news
Summary: sendbatch would stop after the first 50000 bytes -- why?

I was having terrible problems with sendbatch stopping execution after the
first 50000 bytes, so I altered it to work for me..... Any thought why it
failed after the first 50000 bytes?
Stan Barber

-------- revised sendbatch.sh follows -----------
: '@(#)sendbatch.sh	1.4 8/12/85'
# set -x
sstat=0
for rmt in $*
do
	while test $sstat -eq 0 -a \( -s /usr/spool/batch/$rmt -o -s /usr/spool/batch/$rmt.work \)
	do
		/usr/lib/news/batch /usr/spool/batch/$rmt 50000 >/tmp/send$$
		if test $? -eq 0
			then
				if test -s /usr/spool/batch/$rmt.cmd
				then
					/usr/spool/batch/$rmt.cmd