Re: redirecting output from telnet
From: Will Hartung (willh_at_msoft.com)
Date: 11/12/03
- Next message: Jaime Cardoso: "Re: Sun's New Software Model: Does it Deliver? (fwd)"
- Previous message: Mike Delaney: "Re: interaction with other unix operating systems"
- In reply to: Joe Mustafa: "redirecting output from telnet"
- Next in thread: Joe Mustafa: "Re: redirecting output from telnet"
- Reply: Joe Mustafa: "Re: redirecting output from telnet"
- Reply: Jim Cochrane: "Re: redirecting output from telnet"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Next message: Jaime Cardoso: "Re: Sun's New Software Model: Does it Deliver? (fwd)"
- Previous message: Mike Delaney: "Re: interaction with other unix operating systems"
- In reply to: Joe Mustafa: "redirecting output from telnet"
- Next in thread: Joe Mustafa: "Re: redirecting output from telnet"
- Reply: Joe Mustafa: "Re: redirecting output from telnet"
- Reply: Jim Cochrane: "Re: redirecting output from telnet"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|