Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!hubcap!ncrcae!ncrlnk!uunet!wiley!david From: david@wiley.UUCP (David Hull) Newsgroups: news.software.b Subject: sendbatch fails on +m option [ + patch ] Message-ID: <3863@wiley.UUCP> Date: 2 Feb 89 03:35:47 GMT Organization: TRW Inc., Redondo Beach, CA Lines: 37 Whan I tried to use the +m option to sendbatch to remove the MAXBATCH restriction, a test in the batching loop failed. Quoting the arguement fixed the problem. Also, there was no way to change MINDF from the command line, so I added a -f option. -David *** sendbatch.sh.old Fri Jan 27 13:35:32 1989 --- sendbatch.sh Wed Feb 1 19:25:25 1989 *************** *** 59,64 **** --- 59,66 ---- continue;; +D*) SPOOLDISK='' continue;; + -f*) MINDF=`expr "$rmt" : '-f\(.*\)'` + continue;; esac if test -n "$SPOOLDISK" *************** *** 104,110 **** # make sure $? is zero sentbytes=0 ! while test $? -eq 0 -a $sentbytes -le $MAXBATCH -a \ \( \( $sentbytes -eq 0 -a -s $BATCH/$rmt \) -o \ -s $BATCH/$rmt.work \) do --- 106,112 ---- # make sure $? is zero sentbytes=0 ! while test $? -eq 0 -a $sentbytes -le "$MAXBATCH" -a \ \( \( $sentbytes -eq 0 -a -s $BATCH/$rmt \) -o \ -s $BATCH/$rmt.work \) do