gam@uts.amdahl.com (Gordon Moffett) (02/01/89)
This patch is for System V/III and others whose du(1) command
reports sizes in 512-byte blocks.
In 2.11.17 sendbatch assumes that du(1) is reporting sizes in 1k blocks.
This is true of Berkeley systems but not for System V.
It causes sendbatch to assume the batching limits per site are half of
what they were expected to be.
So, this patch rewrites the setting of $du to make it correct
for those sites whose du(1) reports sizes in 512-byte blocks.
*** osendbatch.sh Tue Jan 31 22:58:58 1989
--- sendbatch.sh Tue Jan 31 23:59:26 1989
***************
*** 78,84 ****
if test -n "$MAXBATCH" -a -d /usr/spool/uucp/$rmt
then
! du=`du "/usr/spool/uucp/$rmt" | sed 's/ .*/000/'`
if test ! -z "$du" -a \( "$du" -gt $MAXBATCH \)
then
echo $rmt already has $du Kbytes queued
--- 78,85 ----
if test -n "$MAXBATCH" -a -d /usr/spool/uucp/$rmt
then
! du=`du "/usr/spool/uucp/$rmt" | sed 's/ .*//'`
! du=`expr ${du:-0} / 2`
if test ! -z "$du" -a \( "$du" -gt $MAXBATCH \)
then
echo $rmt already has $du Kbytes queued
--
Gordon A. Moffett gam@uts.amdahl.com
+1 408 746-8287 {ames,sun,uunet,decwrl}!amdahl!gam