Re: retrieving list of groups to text file



On Thu, 4 Oct 2007 20:30:52 +1000, Rom wrote:

On Thu, 4 Oct 2007 11:21:09 +0200, Axel Schlicht wrote:

On Thu, 4 Oct 2007 18:05:44 +1000, Rom wrote:

Telnet to each news server:
telnet <newsserver> <port>
authinfo user <username> (if required)
authinfo pass <password> (if required)
list newsgroups
copy and paste into a text file.
[...]
I'd never thought of telnet. But this leaves the question of how to pipe
stuff from and to telnet. telnet doesn't seem to accept < and >. I'm using
several news providers, and all of them carry > 10000 groups, so copy and
paste is not possible.

I managed to telnet to my news provider, but typing in all those commands
without echo is also very clumsy, so it's redirection what I need. And ist
took quite some time for the groups list to scroll through.

You should be able to get a list of supported commands in telnet by
typing something like ?/help or help /?

Look for the set and unset commands, then get their list of options.

What OS are you using? I know Win2k and WinXP could set and unset the
local echo, but I don't remember if they can log. Telnet (a feature
not turned on by default) in Vista (which I'm using) can log to a text
file.

Hi
I'm still on Win2K switching over to linux.
Win2K only gives
telnet /?
telnet [host [port]]
host specifies the hostname or IP address of the remote
computer to connect to.
port Specifies the port number or
service name.

That's all.
Any combination with < and > don't work; help telnet gives nothing, and
the Windows Help is useless as usual.
What I managed so far was
1 telnet provider 119
2 type in auth commands, with no echo
3 list
4 see some 10K lines of text scrolling over the screen
5 quit
I can live with 2 but really want to catch the output of 3.

May be possible under Linux.

Thanks anyway

Axel
.



Relevant Pages

  • Re: Disable SSH authentication
    ... I interpreted that sentence of chaoson to mean "type in user ... some commands on the remote machine ... I remember to all of you that rsh or telnet are an input/output ... and interprets commands send to it through a ...
    (SSH)
  • Re: TN3270 *from* a host??
    ... It allows the end user to send commands to the TELNET server, ... "Reverting to linemode" implies that, somehow, the SNA session ...
    (bit.listserv.ibm-main)
  • Re: Using port 23 and issuing telnet commands...
    ... this is a method I once used to execute shell commands on a unix machine. ... public bool Exec(string Command, string Host, int Port,string UN, string ... > I've Googled until my eyes hurt looking for a way to issue Telnet ... > go to a telnet client and use it internally. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Expect scripting
    ... is that if the command is entered with the arguements ... ,then the script would telnet to and login then transfer control back ... script file is capturing the shell cmd line and the commands are never ... sent to the telnet session. ...
    (comp.lang.tcl)
  • Re: Matching long strings doesnt work
    ... longer commands, ie go from 1024 to 16K characters. ... Below here is one version of the script I'm testing. ... # I usually telnet to the same computer, but I can change if I want to. ... It's going to take a long time to send out 16K characters but give it a shot. ...
    (comp.lang.tcl)