[CONTACT]

[ABOUT]

[POLICY]

[ADVERTISE]

Aucbarpa.net.sourcesutzoo!decvax!

Found at: gopher.quux.org:70/Archives/usenet-a-news/NET.sources/82.04.20_ucbarpa.1184_net.sources.txt

Aucbarpa.1184
net.sources
utzoo!decvax!duke!harpo!npois!ucbvax!ARPAVAX:usenet
Tue Apr 20 19:52:57 1982
misc/spool
>From mark ...
This package of two shell scripts allows you to send outgoing news in batches
rather than as it comes through.  By controlling the batches, you can
implement a policy such as "mail goes through at once, but news only
goes out during non-working hours".  The disadvantage is that news takes
longer to propagate, so unless you have system load or phone bill problems,
you probably don't want to use this.
Basically, there are two shell scripts.  /usr/lib/news/spoolnews <SYSTEM>
will copy stdin out to a spool directory.  /usr/lib/news/sendspoolednews
is run from cron periodically, and will uux all news which has been
spooled, then start a single uucico.  If you run over a different network,
you can make suitable mods.
To install:  mkdir /usr/spool/outnews.  For each system you spool news
to, mkdir a subdirectory with that name.  The subdirectories should be
mode 777 unless you want to deal with protection issues, which I haven't
bothered with.
Now edit your sys file, changing, say
	foo:net.all,fa.all,to.foo::
to
	foo:net.all,fa.all,to.foo::/usr/lib/news/spoolnews foo
Install the two shell scripts (mode 755) in /usr/lib/news.
Add a line to /usr/lib/crontab such as
	0 0,2,4,6,8,12,17,19,21 * * * /usr/lib/news/sendspoolednews
to send outgoing news at the given times of the day.  If you want
it to go every hour, make the 2nd field just "*".  The above entry
will send news every two hours during unloaded times of a typical
working day - adjust it as you see fit locally.  A line for a system
with phone bill problems might look like
	0 0,1,2,3,4,5,6,7,23 * * * /usr/lib/news/sendspoolednews
--- spoolnews
: ' spoolnews system : spool outgoing news to be transmitted to system '
S=/usr/spool/outnews
cat > $S/$1/$$
--- sendspoolednews
: ' sendspoolednews : transmit news which has been spooled'
S=/usr/spool/outnews
cd $S
for sys in *
do
	cd $sys
	for file in *
	do
		uux -z -r - $sys!rnews 
<HR>
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
<P>
1. There is no money collected for the text(s) of the articles.
<BR>
2. The following notice remains appended to each copy:
<P>
<EM>The Usenet Oldnews Archive: Compilation Copyright&copy 1981, 1996 
<BR> Bruce Jones, Henry Spencer, David Wiseman.</EM>
<P>
<HR>
Goto <A HREF="82.04.21_ucbarpa.1191_net.sources.html">NEXT</A> article in NET.sources Newsgroup
<BR>Return to <A HREF="NET.sources-index.html">NET.sources index</A>
<BR>Return to the 
	<A HREF="../index.html">Usenet Oldnews Archive index</A>
</HTML>
-----------------------------------------------------------------
 gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org>
 of http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 
 Bruce Jones, Henry Spencer, David Wiseman.


AD:

NEW PAGES:

[ODDNUGGET]

[GOPHER]