🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73821

Re: Adding new groups

#73821
From: John F. Morse
Date: Mon, 10 Jul 2006 10:07
45 lines
2981 bytes
Black Dragon wrote:

>John F. Morse wrote:
>
>>The list of groups without descriptions is available using the telnet 
>>"list" command to any NNTP server. It is probably more apropos as to 
>>what you "can" get as opposed to what is "official."
>>    
>>
>>Instead of using a newsgroups file of varying length descriptions, it 
>>might be easier to design a script to "zero out" the high and low water 
>>marks to that shown above? A known length: Ten zeros, plus nine zeros 
>>and a one, followed by a y flag character. If required, the y flag could 
>>later be changed by simple editing. (Thinking out loud here: Wouldn't 
>>the flag need to be retained as-is, in order for moderated groups to 
>>remain moderated?)
>>    
>>
>
>After telneting to a nntp server and listing the active file, I've done 
>something like this in an sh shell on my hobby server.
>
># strip watermarks and flags:
>cat active_file | awk '{ print $1 }' > active_no_watermarks
>
># add groups using ctlinnd newgroup
>for group in `cat active_no_watermarks` ; do
>	ctlinnd newgroup ${group}
>done
>
>HTH
>


I'm obviously overlooking something simple here, but my idea of 
telneting to get a "list" works great -- to the console.

However, I am dumbfounded as to how to get the incoming data routed to a 
file. I've tried a pipe ( list | somefile ) and a redirect ( list > 
somefile ), but neither shell command works inside a telnet session.

Surely there is a method to save a telnet session to a file.

-- 
John
Technical Details
Message-ID: <NFpsg.354922$Fs1.49980@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!wn12feed!worldnet.att.net!bgtnsc05-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> <e8ojtj$tb9$1@puck.litech.org> <CG6sg.110418$mF2.78339@bgtnsc04-news.ops.worldnet.att.net> <slrneb2cl8.m3h.bd@bdhi.local>

Show Full Headers
Complete Article Headers
Message-ID: <NFpsg.354922$Fs1.49980@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Adding new groups
Date: Mon, 10 Jul 2006 10:07:41 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> <e8ojtj$tb9$1@puck.litech.org> <CG6sg.110418$mF2.78339@bgtnsc04-news.ops.worldnet.att.net> <slrneb2cl8.m3h.bd@bdhi.local>
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!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: <slrneb2cl8.m3h.bd@bdhi.local>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 45
NNTP-Posting-Host: 7077d62147807834045073b534763e31
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1152526061
NNTP-Posting-Date: Mon, 10 Jul 2006 10:07:41 GMT