🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73804

Re: Adding new groups

#73804
From: John F. Morse
Date: Sat, 08 Jul 2006 16:20
76 lines
3799 bytes
Peter Robinson wrote:

>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>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
>>>
>
>[...]
>
>
>>This didn't give the expected output. Seems to fail to create the file «
>>list » for the egrep.
>>
>
>The first line should probably be
> wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
>
>The '>' tells the shell to put the output of the wget command into a
>file called list.
>
>Peter
>


That sounded logical to me, but when I tried it, it didn't put anything 
into the file "list" and instead overwrote my current "newsgroups" file 
(I have a backup). ;-)

I'm curious as to where/why the "=> `newsgroups'" line is originating 
(ftp.isc.org?), and if it is the problem? I see the retrieve command 
specifying "newsgroups" from the remote site, so wget must be defaulting 
to using the same filename to save the downloaded file?

------------------------------------------------------------------------

news@news7:~$ wget ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups > list
--11:04:04--  ftp://ftp.isc.org/pub/usenet/CONFIG/newsgroups
           => `newsgroups'
Resolving ftp.isc.org... 204.152.184.110
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    604.32K/s    ETA 00:00

11:04:09 (582.82 KB/s) - `newsgroups' saved [2444405]
 
------------------------------------------------------------------------

news@news7:~$ ls -al
total 2994
drwxrwxr-x  19 news news     888 2006-07-08 11:04 .
drwxr-xr-x   8 root root     216 2006-06-18 09:37 ..
-rw-r--r--   1 news news       0 2006-07-08 11:04 list
-rw-r--r--   1 news news 2444405 2006-07-08 11:04 newsgroups

(Other news' files in ~ removed for clarity.)

-- 
John
Technical Details
Message-ID: <xXQrg.107324$mF2.94191@bgtnsc04-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!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
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> <4yOrg.341632$Fs1.20639@bgtnsc05-news.ops.worldnet.att.net> <1hi613v.1b6i55i1iwd5bdN%pmrobinson@gmx.net>

Show Full Headers
Complete Article Headers
Message-ID: <xXQrg.107324$mF2.94191@bgtnsc04-news.ops.worldnet.att.net>
Subject: Re: Adding new groups
Date: Sat, 08 Jul 2006 16:20:45 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> <4yOrg.341632$Fs1.20639@bgtnsc05-news.ops.worldnet.att.net> <1hi613v.1b6i55i1iwd5bdN%pmrobinson@gmx.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!wn13feed!worldnet.att.net!bgtnsc04-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: <1hi613v.1b6i55i1iwd5bdN%pmrobinson@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 76
NNTP-Posting-Host: 65d962d677cf9bc7bb2309daf8c0690b
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1152375645
NNTP-Posting-Date: Sat, 08 Jul 2006 16:20:45 GMT