gam@uts.amdahl.com (Gordon Moffett) (02/01/89)
The new 2.11.17 sendbatch uses du(1) to see if you've
queued up too much for that site yet. Here is a simple
patch that skips doing the du if there ain't nothin' there
to look at. It's just another arg to test(1) to see if there is a
directory there. This is a fast, cheap way to see that there is
nothing to have to take the time to check; not that I have to worry
about that, of course .... :-), this is for my friends out there still
using Vaxen (more :-)).
[But really] This is part of a another patch which handles other
problems with du(1), in a following article.
*** osendbatch.sh Tue Jan 31 22:57:37 1989
--- sendbatch.sh Tue Jan 31 22:58:58 1989
***************
*** 76,82 ****
fi
fi
! if test -n "$MAXBATCH"
then
du=`du "/usr/spool/uucp/$rmt" | sed 's/ .*/000/'`
if test ! -z "$du" -a \( "$du" -gt $MAXBATCH \)
--- 76,82 ----
fi
fi
! 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 \)
--
Gordon A. Moffett gam@uts.amdahl.com
+1 408 746-8287 {ames,sun,uunet,decwrl}!amdahl!gam