Article View: news.software.nntp
Article #73798Re: Adding new groups
From: John F. Morse
Date: Sat, 08 Jul 2006 13:37
Date: Sat, 08 Jul 2006 13:37
93 lines
4760 bytes
4760 bytes
Iulius wrote:
> En réponse à John F. Morse :
>
>> I could try a script, but the scripting learning curve hasn't even
>> been started yet. You have one handy? ;-)
>
>
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
> egrep "^comp\." list > list-comp
> /usr/lib/news/bin/docheckgroups < list-comp > result
> sh result
>
> will create all the « comp.* » hierarchy.
Iulius,
This didn't give the expected output. Seems to fail to create the file «
list » for the egrep.
------------------------------------------------------------------------
john@news7:~/test$ wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups list
--07:25:21-- ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
=> `newsgroups'
Resolving ftp.isc.org... done.
Connecting to ftp.isc.org[2001:4f8:0:2::18]:21... failed: Address family
not supported by protocol.
Connecting to ftp.isc.org[204.152.184.110]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/usenet/CONFIG ... done.
==> PASV ... done. ==> RETR newsgroups ... done.
Length: 2,444,405 (unauthoritative)
100%[=====<snip>=====>] 2,444,405 880.20K/s ETA 00:00
07:25:25 (880.20 KB/s) - `newsgroups' saved [2444405]
--07:25:25-- http://list/
=> `index.html'
Resolving list... failed: Name or service not known.
FINISHED --07:25:25--
Downloaded: 2,444,405 bytes in 1 files
john@news7:~/test$ egrep "^comp\." list > list-comp
grep: list: No such file or directory
john@news7:~/test$ /usr/lib/news/bin/docheckgroups < list-comp > result
bash: /usr/lib/news/bin/docheckgroups: No such file or directory
john@news7:~/test$ sh result
------------------------------------------------------------------------
john@news7:~/test$ ls -al
total 2393
drwxr-xr-x 2 john users 136 Jul 8 07:25 .
drwxr-xr-x 71 john john 4192 Jul 8 07:25 ..
-rw-r--r-- 1 john users 0 Jul 8 07:25 list-comp
-rw-r--r-- 1 john users 2444405 Jul 8 07:25 newsgroups
-rw-r--r-- 1 john users 0 Jul 8 07:25 result
However if I manually run: « egrep "^comp\." newsgroups > list-comp »
then I do get a proper list of the comp hierarchy:
news@news7:~/test$ ls -al
total 2454
drwxr-xr-x 2 news news 136 2006-07-08 07:46 .
drwxrwxr-x 20 news news 856 2006-07-08 07:45 ..
-rw-r--r-- 1 news news 59912 2006-07-08 07:56 list-comp
-rw-r--r-- 1 news news 2444405 2006-07-08 07:46 newsgroups
-rw-r--r-- 1 news news 3725 2006-07-08 07:46 result
Something is missing to save the file as « list » instead of «
newsgroups » but I haven't had enough coffee yet to figure it out. ;-)
Perhaps the second line of the script should be « egrep "^comp\."
newsgroups > list-comp »?
I'm a little afraid to change this because I can see what the last two
lines could do to my active file. I can't find any man page for
checkgroups, but from looking at the « result » file, I could see nearly
everything could be changed or deleted if it was actually ran in a
shell. (I did find numerous references to checkgroups on Google though.)
Any idea what is missing?
I'll go to the kitchen and make a pot of coffee. ;-)
Thanks in advance,
--
John
Technical Details
Message-ID:
<4yOrg.341632$Fs1.20639@bgtnsc05-news.ops.worldnet.att.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<mqqrg.333436$Fs1.231735@bgtnsc05-news.ops.worldnet.att.net> <87ac7lgvlb.fsf@windlord.stanford.edu> <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net> <e8nv4e$t4f$1@smilodon.ecp.fr>Show Full Headers
Complete Article Headers
Message-ID: <4yOrg.341632$Fs1.20639@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: Adding new groups Date: Sat, 08 Jul 2006 13:37:04 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <mqqrg.333436$Fs1.231735@bgtnsc05-news.ops.worldnet.att.net> <87ac7lgvlb.fsf@windlord.stanford.edu> <pjJrg.106021$mF2.8602@bgtnsc04-news.ops.worldnet.att.net> <e8nv4e$t4f$1@smilodon.ecp.fr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: xanadu.bbs@invalid.net Organization: Xanadu BBS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <e8nv4e$t4f$1@smilodon.ecp.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Lines: 93 NNTP-Posting-Host: c63901dc1990f28084d8f78b788d18e2 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1152365824 NNTP-Posting-Date: Sat, 08 Jul 2006 13:37:04 GMT