🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Lloyd Zusman Fri, 21 Jan 1994 17:36
Repost: Getting news via cron.
#2376
Author: Lloyd Zusman
Date: Fri, 21 Jan 1994 17:36
35 lines
2399 bytes
[ Our news server went down yesterday, and so I'm not sure whether this
  went out, or if it did, whether any replies came in that I might have
  missed.  So, I am reposting.  If you see this and replied in
  'news.software.readers' or 'news.software.nntp', please re-reply
  either in these newsgroups or email, since I haven't received any
  responses yet.  -- Thanks! ]

I would like to fire off some sort of program via cron once or twice a
day which will scan a list of specified newsgroups and store all the
new articles in some sort of disk file(s).
 
I am not a system administrator and do not have access to any of the
nntp stuff that we use here, and so this has to happen through the use
of a newsreader or a newsreader-like program.
 
I'm running under SunOS 4.1.3, by the way, and I normally use gnus
version 4.1 for my newsreader.  I cannot use any interactive program
for this purpose, however, since this has to run automatically once or
twice a day.  Also, it must be independent of anything having to do
with gnus.
 
I'm not sure if I can use {t,r}rn for this purpose, and if not, does
anyone have any other suggestions?
 
Thanks in advance.

  
--
 Lloyd Zusman					zusman_lloyd@jpmorgan.com
 JP Morgan, Corporate Technology		212 235-5086
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 ***  DISCLAIMER:  Any views or opinions expressed above are solely my   ***
 ***  own and do not represent the views or opinions of JP Morgan.       ***
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: Repost: Getting news via cron.
#2382
Author: Steven King, Software Archaeolog...
Date: Mon, 24 Jan 1994 16:29
43 lines
2605 bytes
zusman_lloyd@jpmorgan.com (Lloyd Zusman) publicly declared:
>I would like to fire off some sort of program via cron once or twice a
>day which will scan a list of specified newsgroups and store all the
>new articles in some sort of disk file(s).
>
>[snip]
>
>I'm not sure if I can use {t,r}rn for this purpose, and if not, does
>anyone have any other suggestions?

Here's a little script I pulled off the net a while ago.  It runs trn
in batch mode to process your KILL files without benefit of human
interaction.  Set your KILL files to do the filtering and saving you
want, then fire this off with cron...

---=== Cut Here ===---
#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d	debug mode -- you see all gory action as it happens.

# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^M:n)^(z^)" > $TRNMACRO
if test X$1 = X-d; then
	echo "z" | trn
else
	echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0
---=== Cut Here ===---
-- 
-------------------------------------------------------+-----------------------
Space is big.  Space is dark.                          |      Steven King
It's hard to find.  A place to park.                   |   Motorola Cellular
Burma Shave.                                           |   king@rtsg.mot.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads