[news.admin] Path: header

james@bigtex.uucp (James Van Artsdalen) (04/10/88)

IN article <273@nccnat.UUCP>, root@nccnat.UUCP (Paul Shields) wrote:
> Suppose you have two backbone sites in the same city.  Each one is getting
> articles from some remote site or sites, resulting in duplication of long
> distance charges.  But you need the redundancy, because one of the backbones 
> in the city may go down.  The solution here is to use a modified ihave/sendme 
> protocol which DELAYS transmission of an article to one backbone
> if it is likely that the article will arrive at the other backbone first. 

On my SysVr3 system, I send delayed ihaves with only a minor change to the
sendbatch script:

*** /usr/src/news/src/sendbatch	Sun Apr 10 00:49:50 1988
--- /usr/local/lib/news/sendbatch	Sun Apr 10 00:13:53 1988
***************
*** 76,79
  			mv /usr/spool/batch/$rmt.ihave /usr/spool/batch/$rmt.$$
! 			/usr/local/lib/news/inews -t "cmsg ihave $DOIHAVE" -n to.$rmt.ctl < \
! 				/usr/spool/batch/$rmt.$$
  			rm /usr/spool/batch/$rmt.$$

--- 76,82 -----
  			mv /usr/spool/batch/$rmt.ihave /usr/spool/batch/$rmt.$$
! 			(     echo /usr/local/lib/news/inews -t \"cmsg ihave \
! 				$DOIHAVE\" -n to.$rmt.ctl '<<END_IHAVES'
! 			      cat /usr/spool/batch/$rmt.$$
! 			      echo END_IHAVES
! 			) | at now + 2 days 2>/dev/null
  			rm /usr/spool/batch/$rmt.$$

It works very well.  BSD would need a little help with "at".

A neighboring 3b2 site that isn't running dbm choked when I tried this.
Otherwise I've had no trouble.  I'm getting ready to post a dbm library soon
that is adaptation of the mdbm routines posted long ago to net.sources: this
should help SysV sites that want to run ihave/sendme.

Help: I've lost the name of the author of the mdbm package.  If anyone knows
who it was, please let me know.
-- 
James R. Van Artsdalen   ...!ut-sally!uastro!bigtex!james    "Live Free or Die"
Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746