Article View: news.software.nntp
Article #2735Changes to INN FAQ Part 3/4: Operational and Misc. Questions
From: Tom Limoncelli
Date: Wed, 20 Jul 1994 04:00
Date: Wed, 20 Jul 1994 04:00
156 lines
6543 bytes
6543 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff3
*** FAQ-inn.3-lastposted Tue Jul 5 00:00:21 1994
--- FAQ-inn.3 Wed Jul 20 00:00:08 1994
***************
*** 1,4 ****
! Last Changed: $Id: FAQ-inn.3,v 1.75 1994/06/22 16:06:37 tal Exp $
Part 3 of 4
--- 1,4 ----
! Last Changed: $Id: FAQ-inn.3,v 1.78 1994/07/18 14:34:23 tal Exp $
Part 3 of 4
***************
*** 29,34 ****
--- 29,35 ----
What's the best way to upgrade to a new version of INN?
How do I talk to innd from C or Perl?
After a crash.
+ Subject: Listing every article
INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...:
Suddenly my active and history files are owned by root!
How come my host name comes out twice in the Path line?
***************
*** 226,231 ****
--- 227,271 ----
Check the man page for "makehistory" for more information.
+ ------------------------------
+
+ Subject: Listing every article
+
+ People often ask for a way to list every file in the newsspool. There
+ are a couple ways of doing this. They work well for INN as well as C
+ News:
+
+ 1. Here's the fastest way. However, it only lists the files that are
+ actually in the history file and if an article is crossposted it only
+ gets listed once:
+
+ #!/bin/sh
+ . /usr/lib/news/innshellvars
+ cd ${SPOOL}
+ awk '(NF > 2){print $3}' < ${HISTORY} | tr . /
+
+ Sorting the output will improve directory cache efficiency.
+
+ 2. This lists any article file no matter how many links
+ you have, etc. and even if it is not listed in the history
+ file:
+
+ cd /var/spool/news
+ gfind \( -type l -o -type f \) -print | egrep '/[0-9][0-9]*$'
+
+ 3. find2perl will output a script that you can modify to do some fancy
+ things. For example, this command:
+
+ find2perl . \( -type l -o -type f \) -mtime +30 -name '[0-9][0-9]*$' -exec '/bin/rm {}'
+
+ outputs a perl script that deletes any article that is over 30 days old
+ (except the regular expression is output as wrong... change it to:
+
+ /^[0-9][0-9]*$/ &&
+
+ and it should work just fine.
+
+
=====================================================================
INN IS RUNNING, BUT I HAVE THIS SMALL PROBLEM...
=====================================================================
***************
*** 870,880 ****
use.
#!/bin/sh
! . /home/news/innshellvars
cd ${SPOOL}
awk '(NF > 2){print $3}' < ${HISTORY} | tr . / | sort | \
inpaths `innconfval pathhost` | \
! ${MAILCMD} pathsurvey@decwrl.dec.com
If the inpaths people would include this information in the
README, I could delete it from this FAQ.
--- 910,920 ----
use.
#!/bin/sh
! . /usr/lib/news/innshellvars
cd ${SPOOL}
awk '(NF > 2){print $3}' < ${HISTORY} | tr . / | sort | \
inpaths `innconfval pathhost` | \
! ${MAILCMD} newsmaster,pathsurvey@decwrl.dec.com
If the inpaths people would include this information in the
README, I could delete it from this FAQ.
***************
*** 911,919 ****
8) Just kidding about #6.
None of these features prevent you from having a happy,
! healthy and productive live with INN.
! NO NOT ASK RICH ABOUT 1.5. IT WILL BE RELEASED WHEN IT IS DONE, NOT
WHEN SUFFICIENT NUMBERS OF PEOPLE HAVE ASKED WHEN IT WILL BE FINISHED.
Post to news.software.nntp if you have questions about features.
--- 951,959 ----
8) Just kidding about #6.
None of these features prevent you from having a happy,
! healthy and productive life with INN 1.4sec.
! DO NOT ASK RICH ABOUT 1.5. IT WILL BE RELEASED WHEN IT IS DONE, NOT
WHEN SUFFICIENT NUMBERS OF PEOPLE HAVE ASKED WHEN IT WILL BE FINISHED.
Post to news.software.nntp if you have questions about features.
***************
*** 932,943 ****
1.4-to-1.4sec -- Fixes the major security hole in INN.
1.4sec-to-1.4sec2 -- Fixes the remaining known security hole in INN.
-
select-loop-bug.patch -- Under some circumstances innd can lose track
! of a file descriptor and end up sitting in a select() loop. If your
! INN suddenly is using up tons of CPU time and not getting much done,
! install this UNOFFICIAL patch. Some OSs are more susecptible to this
! bug.
=====================================================================
--- 972,986 ----
1.4-to-1.4sec -- Fixes the major security hole in INN.
1.4sec-to-1.4sec2 -- Fixes the remaining known security hole in INN.
select-loop-bug.patch -- Under some circumstances innd can lose track
! of a file descriptor and end up sitting in a select()
! loop. If your INN suddenly is using up tons of CPU
! time and not getting much done, install this UNOFFICIAL
! patch. Some OSs are more susecptible to this bug.
!
! There is a replacement for innwatch that is written in Perl. Get it from
! "ftp://ftp.univ-lyon1.fr/pub/unix/news/inn/contrib/innwatch-beta2.pl.gz".
! This directory is mirrored on ftp://ftp.pop.psu.edu/pub/src/news/inn/contrib
=====================================================================
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
The internet is like a box of chocolates.
Technical Details
Message-ID:
<inn-faq-changes-3-774676823@Warren.MENTORG.COM>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!agate!library.ucla.edu!ihnp4.ucsd.edu!usc!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!newsgw.mentorg.com!sdl!not-for-mailReferences:
<inn-faq-changes-1-774676823@Warren.MENTORG.COM>Show Full Headers
Complete Article Headers
Message-ID: <inn-faq-changes-3-774676823@Warren.MENTORG.COM> Subject: Changes to INN FAQ Part 3/4: Operational and Misc. Questions Date: Wed, 20 Jul 1994 04:00:26 +0000 From: tal@Warren.MENTORG.COM (Tom Limoncelli) References: <inn-faq-changes-1-774676823@Warren.MENTORG.COM> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.answers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!agate!library.ucla.edu!ihnp4.ucsd.edu!usc!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!newsgw.mentorg.com!sdl!not-for-mail Newsgroups: news.software.nntp,news.software.b,news.answers Supersedes: <inn-faq-changes-3-773380810@Warren.MENTORG.COM> Followup-To: news.software.nntp Organization: Mentor Graphics - IC Group, Warren, NJ, USA Lines: 155 Sender: tal@Warren.MENTORG.COM Approved: news-answers-request@MIT.Edu Distribution: world Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli) NNTP-Posting-Host: sdl.warren.mentorg.com