🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Steve Brailsford Tue, 11 Jun 1991 16:43
expire in nn
#1768
Author: Steve Brailsford
Date: Tue, 11 Jun 1991 16:43
9 lines
1001 bytes
Why doesn't nn expire articles when cnews does?
How do I set it up so that nn's database knows
when cnews has already gotten rid of articles?

-- 
    Steve Brailsford (fsb@sparc.vitro.com)   _____
    Usenet:  uupsi!vitro!sparc!fsb         \/itro Corporation
    Compu$erve: 73427,1466                  14000 Georgia Ave.
    Voice:  (301) 231-1481                  Silver Spring, MD 20906
Re: expire in nn
#1772
Author: Ing. J. Gabriel Ruiz P.
Date: Wed, 12 Jun 1991 15:19
19 lines
1214 bytes
fsb@sparc.vitro.com (Steve Brailsford) writes:

>Why doesn't nn expire articles when cnews does?
>How do I set it up so that nn's database knows
>when cnews has already gotten rid of articles?

  In our site we have this line in our crontab file:

10 6 * * * ( /usr/lib/news/expire ; /usr/local/bin/nnadmin =EYW )

  In this way you're sure the cnews expire ends and the nn one start.




-- 
Juan Gabriel Ruiz Pinto                   Internet:
Ing. Sistemas Electronicos                jgabriel@mtecv2.mty.itesm.mx
I.T.E.S.M. Campus Monterrey
Re: expire in nn
#1767
Author: Alexis Rosen
Date: Thu, 13 Jun 1991 06:38
25 lines
1686 bytes
jgabriel@mtecv2.mty.itesm.mx (Ing. J. Gabriel Ruiz P.) writes:
>  In our site we have this line in our crontab file:
>10 6 * * * ( /usr/lib/news/expire ; /usr/local/bin/nnadmin =EYW )
>  In this way you're sure the cnews expire ends and the nn one start.

If this is really a direct quote you've got a problem. Perhaps you meant:

#  run nnadmin to expire the NN database once the Cnews expire is complete
10 5 * * * /usr/lib/newsbin/expire/doexpire ; /usr/local/bin/nnadmin =EYW

..which is what we've got. The key difference is not the path of the
command, but that we called "doexpire", not expire.

Of course, you said you were using Cnews. If you're really using Bnews, that
may be right. (I think it may be but I don't remember Bnews too well.)

BTW, I know that the "=" to the nnadmin means that it should run silently.
But as far as I can tell this isn't documented anywhere... or does anyone
know different?

---
Alexis Rosen
Owner/Sysadmin, PANIX Public Access Unix, NY
alexis@panix.com
{cmcl2,apple}!panix!alexis
Re: expire in nn
#1770
Author: Ing. J. Gabriel Ruiz P.
Date: Thu, 13 Jun 1991 15:18
47 lines
2907 bytes
alexis@panix.uucp (Alexis Rosen) writes:

>jgabriel@mtecv2.mty.itesm.mx (Ing. J. Gabriel Ruiz P.) writes:
>>  In our site we have this line in our crontab file:
>>10 6 * * * ( /usr/lib/news/expire ; /usr/local/bin/nnadmin =EYW )
>>  In this way you're sure the cnews expire ends and the nn one start.

>If this is really a direct quote you've got a problem. Perhaps you meant:

>#  run nnadmin to expire the NN database once the Cnews expire is complete
>10 5 * * * /usr/lib/newsbin/expire/doexpire ; /usr/local/bin/nnadmin =EYW

>Of course, you said you were using Cnews. If you're really using Bnews, that
>may be right. (I think it may be but I don't remember Bnews too well.)

   You're right, I'm using Bnews, my idea was just to explain in what
  order he must run the Cnews expire and the nn one. Realy, my crontab
  line look like this:

10 6 * * * ( /usr/lib/news/expira ; /usr/local/bin/nnadmin =EYW )
                                ^
                                |- an 'a' instead an 'e'

    This is because, I'm using a perl script to do a more selective
   expiration, sort like Cnews does.

>BTW, I know that the "=" to the nnadmin means that it should run silently.
>But as far as I can tell this isn't documented anywhere... or does anyone
>know different?

    I just know one reference of the silent mode in the nn manual, in
 the "The Master Menu" part of the nnadmin manual, when is explained
 the C)heck option, the manual says: 
   "In the interactive mode and in verbose batch mode (nnadmin MC), print a
    message telling whether nnmaster in running or not. In silent batch mode
                                                           ^^^^^^^^^^^^^^^^^
    (nnadmin =MC) exit with a status code of 0 if nnmaster is running and 1
    ^^^^^^^^^^^^^
    otherwise; this may be useful is administrative scripts."
                                  ^^
                                  I think is an error in the manual here, 
                                  it must be 'in'. :)

-- 
Juan Gabriel Ruiz Pinto                   Internet:
Ing. Sistemas Electronicos                jgabriel@mtecv2.mty.itesm.mx
I.T.E.S.M. Campus Monterrey
Re: expire in nn
#1775
Author: Bob Smith
Date: Mon, 17 Jun 1991 07:17
21 lines
1352 bytes
In article <1991Jun11.164331.22551@sparc.vitro.com> fsb@sparc.vitro.com (Steve Brailsford) writes:
> Why doesn't nn expire articles when cnews does?
> How do I set it up so that nn's database knows
> when cnews has already gotten rid of articles?

I ran into something like that myself, after assuming
that nnmaster would expire news when it saw they where
gone.  Either I misread the docs, or it just ain't so,
none-the-less, you can get nn to expire by cronning up
nnadmin with:

	nnadmin =EYW

at some point after Cnews has expired... and that IS
in the docs! :-)

-- 
 \ Bob Smith         \ Path: ...uunet.uu.net!wang.com!snuffy.uucp!bob
  \ 835 Mammoth Rd.   \ Address: bob@snuffy.uucp
   \ Dracut, MA. 01826 \ Work/voice mail: +1 508 670-6712
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