cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet with file output on the client - is this possible?

VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Telnet with file output on the client - is this possible?

I can telnet to my router and enter commands.
I would like to be able to redirect output back to my desktop - is this possible?

"In The Beginning Was The Word, And The Word Was Aardvark."

17 REPLIES 17
MrC
Grafter
Posts: 523
Thanks: 2
Registered: ‎17-07-2008

Re: Telnet with file output on the client - is this possible?

Which OS is the telnet client running on?
VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Re: Telnet with file output on the client - is this possible?

The client is Ubuntu , so anything (almost) is possible Smiley
I've tried looking at curl - but it doesn't appear to be understandable!

"In The Beginning Was The Word, And The Word Was Aardvark."

Community Veteran
Posts: 4,729
Registered: ‎04-04-2007

Re: Telnet with file output on the client - is this possible?

Does;
telnet router | tee -a telnet.log
work?
VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Re: Telnet with file output on the client - is this possible?

Thanks chilly!
I never think to use tee Embarrassed
That's going into my "fave-commands" file.

"In The Beginning Was The Word, And The Word Was Aardvark."

MrC
Grafter
Posts: 523
Thanks: 2
Registered: ‎17-07-2008

Re: Telnet with file output on the client - is this possible?

Quote from: MrC
Which OS is the telnet client running on?

(Doh, just realised what forum this is  Roll eyes )
Other suggestions from chillypenguin's tee (which is the simplest) are screen or kermit, both of which can capture all output, eg :-
# screen  -L  telnet <router-name or IP>
will give you a file screenlog.0 with the contents of your session. Screen will do a lot more than this - see the man page or Google for the full gory details  Smiley
Mike
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Telnet with file output on the client - is this possible?

screen is pretty much my favourite *nix app, use it every day. It's just soooooo useful!
VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Re: Telnet with file output on the client - is this possible?

Quote from: Ben
screen is pretty much my favourite *nix app, use it every day. It's just soooooo useful!

Emacs is too hard for me!  Cheesy

"In The Beginning Was The Word, And The Word Was Aardvark."

Community Veteran
Posts: 4,729
Registered: ‎04-04-2007

Re: Telnet with file output on the client - is this possible?

vi  Wink
VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Re: Telnet with file output on the client - is this possible?

gedit or nano

"In The Beginning Was The Word, And The Word Was Aardvark."

Community Veteran
Posts: 6,773
Thanks: 258
Fixes: 21
Registered: ‎16-02-2009

Re: Telnet with file output on the client - is this possible?

Since you have changed to editors, try joe (if you grok wordstar commands)
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Telnet with file output on the client - is this possible?

It's vi or die I'm afraid Wink
Emacs is just evil.
MrC
Grafter
Posts: 523
Thanks: 2
Registered: ‎17-07-2008

Re: Telnet with file output on the client - is this possible?

Quote from: Ben
It's vi or die I'm afraid Wink

As long as we're talking vim and not classic vi - can't live without those split windows Smiley
Quote from: Ben
Emacs is just evil.

No arguing there. It belongs in the same pile of ordure as info.
Mike
VileReynard
Champion
Posts: 11,775
Thanks: 445
Fixes: 16
Registered: ‎01-09-2007

Re: Telnet with file output on the client - is this possible?

Quote from: Ben
It's vi or die I'm afraid Wink
Emacs is just evil.

bash: die: command not found
  Cheesy

"In The Beginning Was The Word, And The Word Was Aardvark."

Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Telnet with file output on the client - is this possible?

Quote from: MrC

As long as we're talking vim and not classic vi - can't live without those split windows Smiley

Yeah fair enough. I do really use vim rather than vi. Split windows, key mapping, syntax highlighting and all that good stuff. If you're feeling particularly masochistic, then try vi on solaris Wink It's a bit stricter than most default linux versions I've used.