james@bigtex.uucp (James Van Artsdalen) (08/21/88)
If you want to use ihave/sendme, but avoid the duplications that often result, here is one way to do it. This patch to sendbatch.sh causes outgoing ihave messages to be delayed by 2 days. Incoming sendme messages are not delayed. I use it extensively for backup news feeds. *** sendbatch.sh Sat Aug 20 20:06:37 1988 --- Sendbatch.sh Sat Aug 20 20:04:29 1988 *************** *** 74,81 if test -n "$DOIHAVE" -a -s BATCHDIR/$rmt.ihave then mv BATCHDIR/$rmt.ihave BATCHDIR/$rmt.$$ ! LIBDIR/inews -t "cmsg ihave $DOIHAVE" -n to.$rmt.ctl < \ ! BATCHDIR/$rmt.$$ rm BATCHDIR/$rmt.$$ else --- 74,83 ----- if test -n "$DOIHAVE" -a -s BATCHDIR/$rmt.ihave then mv BATCHDIR/$rmt.ihave BATCHDIR/$rmt.$$ ! ( echo LIBDIR/inews -t \"cmsg ihave $DOIHAVE\" -n to.$rmt.ctl '<<END_IHAVES' ! cat BATCHDIR/$rmt.$$ ! echo END_IHAVES ! ) | at now + 2 days 2>/dev/null rm BATCHDIR/$rmt.$$ else This won't work if you have a dumb "at". -- James R. Van Artsdalen ...!uunet!utastro!bigtex!james "Live Free or Die" Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746