🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Leo Breebaart Tue, 05 May 1992 11:13
Non-interactively mirroring a newsgroup
#2714
Author: Leo Breebaart
Date: Tue, 05 May 1992 11:13
19 lines
1511 bytes
I have a very specific problem I need a solution to: I want to use nn to 
automatically 'mirror' one specific newsgroup (i.e. save all the articles 
to a file). And I want this to happen non-interactively, i.e. from a crontab 
job.

As far as I understand nn, this should not be too difficult to do (the only
thing I am not sure of is if you can force a non-interactive 'on group' 
command to execute), but it will probably cost me some hours of figuring
it all out and implementing it.

My question to this group therefore: has anybody ever needed to do anything
like this, and if so, can you help me out by describing your setup, or, even
better yet, sharing your scripts with me? I don't mind putting effort in
something like this, but I'd hate to reinvent the wheel.

Many thanks in advance,

-- 
Leo Breebaart  (leo @ ph.tn.tudelft.nl)
Re: Non-interactively mirroring a newsgroup
#2724
Author: Bill Wohler
Date: Wed, 06 May 1992 14:48
12 lines
1177 bytes
leo@ph.tn.tudelft.nl (Leo Breebaart) writes:
>I have a very specific problem I need a solution to: I want to use nn to 
>automatically 'mirror' one specific newsgroup (i.e. save all the articles 
>to a file). And I want this to happen non-interactively, i.e. from a crontab 
>job.

  if you find a nice way to do this with nn, let me know, as i don't
  think it can easily be done.  the proper tool for your job is a rn
  macro.  unfortunately, i don't know the details.

Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
Re: Non-interactively mirroring a newsgroup
#2721
Author: Alan Moses
Date: Wed, 06 May 1992 17:28
57 lines
2822 bytes
If you have the proper permissions, it looks like there's 
a way to do this mentioned in the nnmaster man page.  I
haven't done this yet, but I'll be trying it soon.  Ideally, I
would want to save articles into a file **and** have them appear
normally in the database. If anyone is doing this, please let me
know.

- Alan

Alan Moses
Graduate School of Education		alan@edstar.gse.ucsb.edu
UC Santa Barbara   			UCSB PROFS: AMOSES 
Santa Barbara, CA 93106-9490  		Voice: (805) 893-8031
----------------------------------------------------------------
NNMASTER(8)           MAINTENANCE COMMANDS            NNMASTER(8)
          
..

THE GROUPS FILE
     The primary purpose of the GROUPS file is to store the names
     of  the  news groups represented in the database.  Each line
     in the file corresponds to an entry in the  (binary)  MASTER
     file,  and the sequence of the lines in the GROUPS file must
     never be changed unless the database is reinitialized after-
     wards.

     However, the contents of the lines in the GROUPS file can be
     edited  to control how the nnmaster should handle each indi-
     vidual group.

     The format of each line is:

          news.group.name [ timestamp ] [ flags ]

..

     One or more of the following  flags  can  be  added  to  the
     GROUPS line to control nnmaster's handling of the group:

..

     >file
          Instructs nnmaster to append all new  articles  to  the
          specified   file.   This  makes  it  possible  to  keep
          specific groups out of the way of expire.  The  archive
          file  can  be  access directly from the nn client using
          the goto-group command.  The file name must be  a  full
          path  name  to  a file in an existing, writeable direc-
          tory.
..

     It is not recommended to edit the GROUPS file while nnmaster
     is running because it may add new groups to the file.  After
     editing the GROUPS file, the command
          nnmaster -G
     must be run before restarting the nnmaster to parse and ver-
     ify the new GROUPS file.
Re: Non-interactively mirroring a newsgroup
#2803
Author: Andy Burgess
Date: Mon, 08 Jun 1992 18:53
30 lines
1713 bytes
In <leo.705064426@galaxy> leo@ph.tn.tudelft.nl (Leo Breebaart) writes:

>I have a very specific problem I need a solution to: I want to use nn to 
>automatically 'mirror' one specific newsgroup (i.e. save all the articles 
>to a file). And I want this to happen non-interactively, i.e. from a crontab 
>job.

I'm a little behind in my news reading but if anyone is still working on this
I know that Cnews can do this easily in the sys file. You need will need to
be sysadmin to edit sys originally but from then on its automatic.

Something like:

maps:comp.mail.maps:F:/usr/spool/uumaps/work/batch

will work. Maps is a dummy system name, comp.mail.maps is the newsgroup name,
F means append a file, /usr/spool/uumaps/work/batch is the filename.

This has the feature of working ahead of any newsreader (nn, rn, ...)
and is thus transparent to them.

Hope this helps.

Andy


-- 
==================================================================================
Andrew A. Burgess              aab@cichlid.com                voice (408) 335 4779
==================================================================================
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