[comp.sys.sgi] logging telnet sessions to a file

karron@MCIRPS2.MED.NYU.EDU (08/11/90)

I there any way to save a telnet session in a file ?
I miss the kermit facility to save both ends of a session in a log.

dan.
+-----------------------------------------------------------------------------+
| karron@nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
+-----------------------------------------------------------------------------+

schuman@sgi.com (Aaron Schuman) (08/13/90)

Dan>	I there any way to save a telnet session in a file ?


It's dreadfully easy.  I entered "telnet | tee /tmp/telnet"
with this happy result:


telnet> Trying 192.26.61.22...
Connected to saffron.wpd.sgi.com.
Escape character is '^]'.


IRIX System V.3 (saffron)















You'll note a couple of things:

Even though I entered my password during the session,
it didn't show up in the log file.  This is a good thing!

All the control characters, the backspaces and line feeds,
show up in the log file.  It's ugly, but you can always
edit it later if you must.

				Aaron

schuman@sgi.com (Aaron Schuman) (08/13/90)

How interesting!  My posting was mostly unprinted lines because
of all of those funky control characters in my telnet log file.
I hand edited the file, replacing <control-M> with <carat><M>,
and <control-H> with <carat><H>, so that news would take it, and
here it is:


telnet | tee /tmp/telnet


telnet> Trying 192.26.61.22...
Connected to saffron.wpd.sgi.com.
Escape character is '^]'.


^MIRIX System V.3 (saffron)
^M^M
^Mlogin: schuman
^MPassword:
^MIRIX System V Release 3.3 saffron
^MCopyright (c) 1988,1989,1990 Silicon Graphics, Inc.
^MAll Rights Reserved.
^MMon Aug 13 09:39:15 PDT 1990
^Msaffron /usr/people/schuman > date
^MMon Aug 13 09:39:35 PDT 1990
^Msaffron /usr/people/schuman > ex^H ^^HH ^Hecho 'Do you like it ^H ^H, Dan?'
^MDo you like it, Dan?
^Msaffron /usr/people/schuman > exit
^Msaffron /usr/people/schuman > logout

root@MCIRPS2.MED.NYU.EDU (08/15/90)

Aaron Schuman <ucbvax.berkeley.edu!sgi!shinobu!odin!schuman> says:
>
>How interesting!  My posting was mostly unprinted lines because

I did not see your posting. Perhaps you might send a copy to me.

>of all of those funky control characters in my telnet log file.
>I hand edited the file, replacing <control-M> with <carat><M>,
>and <control-H> with <carat><H>, so that news would take it, and
>here it is:
>
>
>telnet | tee /tmp/telnet
>
... stuff deleted...
>Escape character is '^]'.
>
>
>^MIRIX System V.3 (saffron)
>^M^M
>^Mlogin: schuman
>^MPassword:
>^MIRIX System V Release 3.3 saffron
>^MCopyright (c) 1988,1989,1990 Silicon Graphics, Inc.
>^MAll Rights Reserved.
>^MMon Aug 13 09:39:15 PDT 1990
>^Msaffron /usr/people/schuman > date
>^MMon Aug 13 09:39:35 PDT 1990
>^Msaffron /usr/people/schuman > ex^H ^^HH ^Hecho 'Do you like it ^H ^H, Dan?'
>^MDo you like it, Dan?
>^Msaffron /usr/people/schuman > exit
>^Msaffron /usr/people/schuman > logout


Yes, your way clearly works.

I was also advised to try the script command, but that does not appear
to be functional on sgi telnet.

The set tracefile <filename> also does not work. It leaves a zero length
file but no traces in the file.

I will use your way, which is also clearly a hack (but a nice clever one).

I hope that the boys at sgi are listening and can do something.

dan.

 .
+-----------------------------------------------------------------------------+
| karron@nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
+-----------------------------------------------------------------------------+

karron@MCIRPS2.MED.NYU.EDU (08/15/90)

Oh. I thought script was a facility in telnet.
I see that you mean that script is a csh shell facility.
Yep, that works, but apparently only if you are using full duplex mode,
as you will not see your input, only what is echoed.

I would like to see my input too, even if it is not echoed. That is for
exotic editors on other systems that do all sorts of things with a few user
keystrokes.

Thanks for your response.

dan(who never reads the script anyway)
+-----------------------------------------------------------------------------+
| karron@nyu.edu                          Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
+-----------------------------------------------------------------------------+