arnold@skeeve.UUCP (Arnold D. Robbins) (11/10/89)
Here is the unofficial patch I mentioned in the previous article. Keep the original version of sendbatch!! I have updated the copy I keep for uucp on skeeve, it has this patch applied and the original sendbatch.sh in sendbatch.sh~. Enjoy, Arnold ----------------------------------------------------------------- Path: emory!samsung!cs.utexas.edu!rice!uw-beaver!Teknowledge.COM!unix!hplabs!hp-sdd!ucsdhub!celit!news From: news@fps.com (NetNews Administrator) Newsgroups: news.software.b Subject: Bnews patch 19 breaks sendbatch Message-ID: <2995@celit.fps.com> Date: 5 Nov 89 00:37:38 GMT Reply-To: news@fps.com (NetNews Administrator) Organization: FPS Computing Inc., San Diego CA Lines: 47 Patch 19 dies in the new test for bytes_this_batch due to bad arguments caused by the variable du not being assigned to anything. I got sendbatch running again by assigning du to be zero before the part where du gets assigned under special conditions. I don't have directories in /usr/spool/uucp named after my usenet neighbors. What is this for? This patch to sendbatch.sh should be used after applying patch 19. I don't guarantee this will work (heck! Rick didn't! :-). It got my sendbatch going again at least. (It's a good thing I have a guinea pig system to play with or my batches would really be piling up!). The first hunk is the important one. In the second, I only added a few `"' marks which really aren't that important. They are however on the two lines that in sendbatch that choked. --Bill Davidson *** sendbatch.sh.old Tue Oct 31 20:34:18 1989 --- sendbatch.sh Sat Nov 4 16:24:41 1989 *************** *** 86,91 **** --- 86,92 ---- fi fi + du=0 if test -n "$MAXBATCH" -a -d /usr/spool/uucp/$rmt then du=`du "/usr/spool/uucp/$rmt" | sed 's/ .*/000/'` *************** *** 114,121 **** # make sure $? is zero sentbytes=0 ! bytes_this_batch=`expr $MAXBATCH - $du` ! if test $bytes_this_batch -gt $MAXPERRUN then bytes_this_batch=$MAXPERRUN fi --- 115,122 ---- # make sure $? is zero sentbytes=0 ! bytes_this_batch="`expr $MAXBATCH - $du`" ! if test "$bytes_this_batch" -gt $MAXPERRUN then bytes_this_batch=$MAXPERRUN fi -- Arnold Robbins -- The Basement Computer | Laundry increases Internet: arnold@skeeve.ATL.GA.US | exponentially in the UUCP: { gatech, gladys, emory }!skeeve!arnold | number of children. Bitnet: Forget it. Get on a real network. | -- Miriam Hartholz