Article View: news.software.nn
Article #2852Re: How to delete cancelled and expired articles ???
From: Ofer Inbar
Date: Wed, 17 Jun 1992 03:14
Date: Wed, 17 Jun 1992 03:14
46 lines
3448 bytes
3448 bytes
ckd@eff.org (Christopher Davis) writes: >Ofer> == Ofer Inbar <cos@chaos.cs.brandeis.edu> > > Ofer> You'll most likely want to use crontab to schedule a regular expire > Ofer> every day. If you do this, you'll want to use nnadmin =EY. The = > Ofer> switch, which is ostensibly documented somewhere :-), causes nnadmin > Ofer> to run in noninteractive mode, so it does not use the tty. Find out > Ofer> when your news system expires articles, and have nnmaster do its > Ofer> expire after news is done. For example, if your news server starts > Ofer> expires at midnight and usually takes about an hour, then have > Ofer> nnmaster expire every day at 1:30am. > >Of course, if you are the news admin, or can get them to maintain it, >you can put it in with the expire crontab entry, so it will be run >immediately after expire finishes, with no race conditions. > >This is what we use [wrapped for readability] >59 0 * * * /usr/lib/newsbin/expire/doexpire; /usr/local/bin/nnadmin =EYW; >/usr/local/lib/nn/back_act;/usr/lib/newsbin/expire/updatemin The reason I didn't think of suggesting this one is because it doesn't apply to our site; we have an NNTP setup with the news system and nn on different machines (with no shared disks). >I don't remember what the W switch to nnadmin does :) I wakes up the master, which normally causes it to check to see if it needs to collect new articles. In this case, when the master wakes up it will notice that you've sent it an expire signal, and start expiring right away. If you didn't have the W, the expire would wait until the next time nnmaster woke up automatically. The frequency for this is set by the argument to the -r switch, and I think defaults to every 30 minutes. nnadmin doesn't really have 'switches' at all, with the exception of = which causes it to run in background. Other than that, it reads the letters on the command line argument and interprets them as menu choices, just as if you had run nnadmin manually and typed in those keys. To see what a given 'switch' does, just start up nnadmin or (:admin inside nn) and see what the menu choices are. E and W are on the top level menu. The E (expire) option asks for a Y/N confirmation. -- Cos (Ofer Inbar) -- cos@chaos.cs.brandeis.edu -- WBRS (BRiS) -- WBRS@binah.cc.brandeis.edu WBRS@brandeis.bitnet Brandeis University Computer Science Department (617) 736-2700 415 South Street, Waltham MA, 02254-9110 System Admin: 736-2717
Technical Details
Message-ID:
<cos.708750890@chaos.cs.brandeis.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!cosReferences:
<minh.708181938@lis.rch.unimelb.edu.au> <1992Jun10.134930.13803@athena.mit.edu> <minh.708322385@lis.rch.unimelb.edu.au> <JIK.92Jun12170212@pit-manager.mit.edu> <minh.708568657@lis.rch.unimelb.edu.au> <cos.708684634@chaos.cs.brandeis.edu> <CKD.92Jun16181519@loiosh.eff.org>Show Full Headers
Complete Article Headers
Message-ID: <cos.708750890@chaos.cs.brandeis.edu> Subject: Re: How to delete cancelled and expired articles ??? Date: Wed, 17 Jun 1992 03:14:50 GMT From: cos@chaos.cs.brandeis.edu (Ofer Inbar) References: <minh.708181938@lis.rch.unimelb.edu.au> <1992Jun10.134930.13803@athena.mit.edu> <minh.708322385@lis.rch.unimelb.edu.au> <JIK.92Jun12170212@pit-manager.mit.edu> <minh.708568657@lis.rch.unimelb.edu.au> <cos.708684634@chaos.cs.brandeis.edu> <CKD.92Jun16181519@loiosh.eff.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!cos Newsgroups: news.software.nn Sender: news@news.cs.brandeis.edu (USENET News System) Organization: Brandeis University Lines: 46