Re: redirecting output from telnet

From: Will Hartung (willh_at_msoft.com)
Date: 11/12/03


Date: Tue, 11 Nov 2003 15:43:53 -0800


"Joe Mustafa" <kmustafa@austin.rr.com> wrote in message
news:3FB16CE0.7050601@austin.rr.com...
> The reson I am tring to do this is I have a program that I run from a
> telnet and it spits out tons of info and lines so much the buffer on the
> shelltool fills and I lose the begingin of the info, plus I need to
> have a softcopy to send to people. Any sugestions.

If you don't need to access the data from your session immediately, i.e. you
simply want to record it for later, then the simple solution is to use the
'script' command.

$ script
$ telnet x.x.x.x
login: xxx
password:

otherhost $ ...
otherhost $ ^D
$ ^D
output in typescript
$

Script will capture pretty much everything from your session and save it to
a file (in this case the file 'typescript', which is the default). Actually,
it simply catches the output to your session, not your input (so it won't
record your password, for example).

Be aware that it does capture everything, including terminal control
characters like backspace (for when you edit the command line) and all of
the magic that vi spits out should you edit something.

Also, it will see most every line ends with a ^M vs a normal unix file of
simply ^J.

But if you simply want to capture the output of a command on a remote
system, it works really well.

Regards,

Will Hartung
(willh@msoft.com)



Relevant Pages

  • Re: Outlook Express Newsgroup Problem with XP?
    ... This suggests that you didn't open a command window ... > to coach me with my telnet commands, ... In order to capture them you could use netcap (it comes ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Networks,,,,,,,,,,,,,,,,,,,,
    ... > service portmap restart ... > Once you have the exports file set up, you can run the command: ... > Note that these lines need to be there on both bill's and ted's hosts ... Well, to do that, you need to make sure that the telnet, ftp and ...
    (Fedora)
  • Re: Networks,,,,,,,,,,,,,,,,,,,,
    ... service portmap restart ... Once you have the exports file set up, you can run the command: ... Note that these lines need to be there on both bill's and ted's hosts ... You said you wanted to "make telnet, ftp and ssh work between the ...
    (Fedora)
  • Re: How to remote control the device using command line input from PC?
    ... It somewhat different, use telnet instead. ... Just open command prompt window on your development machine ... ActiveSync can't work over RNIDS connection ... You can use USB serial function instead ...
    (microsoft.public.windowsce.embedded)
  • Re: Emails stuck in queue error 451 4.4.0 Primary target IP addres
    ... If you had just said "Siv you forgot to include the port number in the ... Telnet command" in your first response after asking me to carry out the ... I said earlier I am not familiar with telnet, I have probably used it twice ... Connecting To smtp.surfdsl.net...Could not open connection to the host, ...
    (microsoft.public.exchange.misc)