๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #73825

Re: Adding new groups

#73825
From: John F. Morse
Date: Mon, 10 Jul 2006 11:47
104 lines
4012 bytes
Black Dragon wrote:

>John F. Morse wrote:
>
>  
>
>>F. Senault wrote:
>>    
>>
>
>  
>
>>>Le 10 juillet 2006 ร  12:07, John F. Morse a รฉcrit :
>>>      
>>>
>
>  
>
>>>>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.
>>>>        
>>>>
>
>  
>
>>>Try script.
>>>      
>>>
>
>  
>
>>Could you provide me some clue how to do this?
>>    
>>
>
>  
>
>> From within a telnet session, all I have at my disposal are the 
>>commands the remote application understands.
>>    
>>
>
>script basically invokes another shell and logs everything on a terminal
>/ console / remote shell to a text file. The logging ends when you exit
>script.
>
>To capture an active file;
>
>#start script, output to active_file
>script active_file
>
>#get active file
>telnet news.blah.blah nntp
>authinfo user blah
>authinfo pass blah
>list active
>quit
>
>#exit script
>exit
>
>Open the file in a text editor and remove the header and footer added by
>script, and you're on your way.
>
>HTH
>


Of course!

My face is red. :-[

I took Fred's short statement, "Try script" to indicate writing a shell 
script to do the work. Scripting is an area (one of many) where I'm 
pretty ignorant.

Perhaps seeing his native language appears as French, I was mistakenly 
thinking he dropped the English article "a" in "Try 'a' script."

My sincere apologies to Fred, and my thanks to you for pointing out I 
should have recognized this is "script(1)" a shell command.

I just tried it and it worked great, with the exception the remote host 
closed the connection in the middle of the "T" newsgroups without 
finishing. That must me a problem with my ISP's NNTP server. I think 
they do maintenance this time in the morning (0630 local).

A second test a few minutes later resulted in the full list, through "zzz."

My next project would be to figure out how to compare this ISP's list of 
groups with another ISP's list of groups, and then output any differences.

Again, many thanks to both of you for the very much appreciated and 
needed help.

-- 
John
Technical Details
Message-ID: <e7rsg.355416$Fs1.88563@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!wn13feed!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> <NFpsg.354922$Fs1.49980@bgtnsc05-news.ops.worldnet.att.net> <221y6fv8lphd$.dlg@tamnavulin.lacave.local> <IQpsg.354976$Fs1.174950@bgtnsc05-news.ops.worldnet.att.net> <slrneb4ddq.1l9s.bd@bdhi.local>

Show Full Headers
Complete Article Headers
Message-ID: <e7rsg.355416$Fs1.88563@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Adding new groups
Date: Mon, 10 Jul 2006 11:47:22 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> <NFpsg.354922$Fs1.49980@bgtnsc05-news.ops.worldnet.att.net> <221y6fv8lphd$.dlg@tamnavulin.lacave.local> <IQpsg.354976$Fs1.174950@bgtnsc05-news.ops.worldnet.att.net> <slrneb4ddq.1l9s.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!wn13feed!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: Debian Thunderbird 1.0.2 (X11/20060423)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <slrneb4ddq.1l9s.bd@bdhi.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 104
NNTP-Posting-Host: 582a77c6e6c3c2a5c7350a723d4e6285
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1152532042
NNTP-Posting-Date: Mon, 10 Jul 2006 11:47:22 GMT