Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!husc6!rutgers!ames!amdahl!dlb!auspyr!joe From: joe@auspyr.UUCP Newsgroups: news.config,news.admin Subject: News Feeds via Node Hop Message-ID: <4948@auspyr.UUCP> Date: Thu, 7-May-87 13:48:59 EDT Article-I.D.: auspyr.4948 Posted: Thu May 7 13:48:59 1987 Date-Received: Fri, 8-May-87 06:46:14 EDT Organization: Austec, Inc., San Jose, CA. USA Lines: 100 Xref: linus news.config:152 news.admin:387 Problem: - Sending compressed, batched, network news via a non-news site. Scenario: - Two Network News Sites (!newsA and !newsB) are running News2.11 and wish to send news to each other. !newsA and !newsB aren't connected directly, but a common site (!inbetween) links them via UUCP. !inbetween does not run the network news. Solution: - Create a fake entry in the /usr/lib/news/sys file for the distant systems. For example: On !newsA!/usr/lib/news/sys, add: newsB:to.newsB,...newsgroups...:F: On !newsB!/usr/lib/news/sys, add: newsA:to.newsA,...newsgroups...:F: - Add cron scripts to execution sendbatch for the fake sites, Eg: On !newsA!/usr/lib/crontab: 1 * * * * /usr/lib/news/sendbatch -c newsB and etc... - Create an rnews-execution-forwarder on the non-news site. For example, on !inbetween create the file /usr/local/bin/rnewsfwd to read: uux - $1!rnews - Since the /usr/lib/news/sendbatch script will look for a file in the form of /usr/spool/batch/$remote.cmd and execute it, then create a script for each fake site (on the news sites) that reads: uux - -r -z inbetween!rnewsfwd `basename $0 .cmd` Or, for folks that don't like to use "ln", the file /usr/spool/batch/newsB.cmd would read: uux - -r -z inbetween!rnewsfwd newsB Actions taken, commands executed: A user on !newsA posts news to to.newsB. The article is stored in /usr/spool/batch/newsB. Cron starts up "/usr/lib/news/sendbatch -c newsB". /usr/lib/news/sendbatch sees that /usr/spool/batch/newsB.cmd exists and executes it. /usr/spool/batch/newsB.cmd generates the command: uux inbetween!rnewsfwd newsB After UUCICO gets done transfering files, the rnewsfwd script on !inbetween then generates the command: uux newsB!rnews Once again, after UUCICO, rnews on !newsB runs inews and the article is posted on !newsB. And visa-versa. Flow wise, that is... !newsA!/usr/lib/news/sendbatch -> !newsA!/usr/spool/batch/newsB.cmd -> uux inbetween!rnewsfwd newsB !inbetween!/usr/lib/uucp/uuxqt -> !inbetween!/usr/local/bin/rnewsfwd newsB -> uux newsB!rnews !newsB!/usr/bin/rnews -> !newsB!inews Problems: - News posted via the rnews-execution-forwarder won't reflex a true Path:, so news readers with mail-reply options might not like it. [[ This was no problem here since both sites are running smail with sendmail. ]] Perhaps the NEXT version of News Software might want to consider an rnews-execution-forwarder scheme that attaches the node-hoppers-names to the path lines; but if you ask me, it should be done with command line args and let the final poster fix the path! - A better rnews-execution forwarder need be created for multi-node hops. I know the above works on 2.11 news ... should it work on 2.10? (Actually, on my implementation, !newsA ran 2.11 and !newsB ran 2.10 ... worked fine). -- "No matter Joe Angelo, Sr. Sys. Engineer @ Austec, Inc., San Jose, CA. where you go, ARPA: aussjo!joe@lll-tis-b.arpa PHONE: [408] 279-5533 there you UUCP: {sdencore,cbosgd,amdahl,ptsfa,dana}!aussjo!joe are ..." UUCP: {styx,imagen,dlb,jmr,sci,altnet}!auspyr!joe