1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head>
<META NAME="generator" CONTENT="lgazmail v1.1D.l">
<TITLE>The Answer Guy 34:
Telnet/xterm: Log to file
</TITLE>
<!-- ORIGINAL SUBJECT:
Here's a doozy
JTD SUBTITLE:
-->
</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
ALINK="#FF0000">
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H1 align="center"><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="" border="0" align="middle">
<a href="../index.html">The Answer Guy</a>
<img src="../../gx/dennis/bbubble.gif" alt="" border="0" align="middle">
</A></H1>
<BR>
<H4 align="center">By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a>
<BR>Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H4>
<p><hr><p>
<!--endcut ========================================================= -->
<H3><img src="../../gx/dennis/qbub.gif" alt="(?)"
width="50" height="28" align="left" border="0"
>Telnet/xterm: Log to file</H3>
<p><strong>From Jason Joyce on 07 Oct 1998 </strong></p>
<!-- begin body -->
<p><strong>How can you log a telnet session using it from an xterm in Linux? I
need to create a log of my actions during a telnet session, and I know
that you can do it using telnet under Microsoft. And I know that if
those guys have it, then they must have copied it from somewhere, and so
I believe that it is possible using Linux, but I can't find any way.
</strong></p>
<p><strong>Thanks for any help,
Jason
</strong></p>
<blockquote><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)" height="28" width="50" align="bottom">You can run the '<TT>script</TT>' command (which creates a
"transcript" named "typescript" by default.
</blockquote>
<blockquote>You can also run the '<TT>screen</TT>' utility, which, among
many other features, allows you to take open multiple
screen sessions through one virtual console, telnet,
xterm, or even dial-up VT100 sessions and dumb
terminals. Think of having all the power of your
virtual consoles from any sort of terminal/shell
session. You can do screen snapshots, open and close
log files, view a backscroll buffer (with '<TT>vi</TT>' like
search features), mark and paste text (keyboard driven),
do a screen lock, and even detach the whole screen
session from your current terminal, xterm or whatever
(and re-attach to it from any login, from that or any
other terminal, later).
</blockquote>
<blockquote>I routinely run '<TT>screen</TT>' for all my sessions. When I
log into one of my ISP shell accounts I prefer to
run '<TT>screen</TT>' at the far end because it will auto-detach
if my modem disconnects me. So, I can redial, re-attach
and resume my work. I can also dial into my home
system, do a '<tt>kill -HUP</tt>' on my screen process (actually
a '<tt>screen -d -R</tt>' will auto located, HUP, and re-attach
all at once) and continue working on all ten of the
interactive programs that I had running at the time.
</blockquote>
<blockquote>There are other ways you can do this. There was a
sample script in '<TT>expect</TT>' that did this in about 10
lines of TCL/expect code.
</blockquote>
<blockquote>You can also use Kermit (<a href="http://www.columbia.edu/kermit/">ckermit</a>, from Columbia
University). This is a communications package,
file transfer package and network client. I wrote
an article for <a href="http://www.samag.com/">SysAdmin Magazine</a> about a year ago
to describe its use as a telent/rlogin client.
</blockquote>
<blockquote>In addition to be fully scriptable and supporting
the same file transfers over TCP/IP as it does over
any serial connection; it's also possible to do
logging and exentisive debugging using Kermit.
</blockquote>
<blockquote>The next version (currently still in beta?) should
support Kerberos authentication <EM>and</EM> encryption
(one of several enhancements that I beat up on Frank
de la Cruz --- it's principal author and co-ordinator
--- about while researching my article).
</blockquote>
<blockquote>So, there's about four options off the top of my head.
</blockquote>
<!-- end body -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright ©</a> 1998, James T. Dennis <BR>
Published in <I>Linux Gazette</I> Issue 34 November 1998</H5>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P align="center">
<table width="98%"><tr valign="center" align="center">
<td rowspan="3"><A HREF="../lg_answer34.html"><IMG
SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Index ]"></A></td>
<td><A HREF="./apache.html">apache</a>
<td><A HREF="./current.html">current</a>
<td><A HREF="./digi.html">digi</a>
<td><A HREF="./ether.html">ether</a>
<td><A HREF="./goodtimes.html">goodtimes</a>
<td><A HREF="./intlX.html">intlX</a>
<td><A HREF="./largedisk.html">largedisk</a>
</tr><tr valign="center" align="center">
<td><A HREF="./maybe.html">maybe</a>
<td><A HREF="./numlock.html">numlock</a>
<td><A HREF="./quota.html">quota</a>
<td><A HREF="./recovery.html">recovery</a>
<td><A HREF="./script.html">script</a>
<td><A HREF="./serial.html">serial</a>
<td><A HREF="./session.html">session</a>
</tr><tr valign="center" align="center">
<td><A HREF="./sound.html">sound</a>
<td><A HREF="./tape.html">tape</a>
<td><A HREF="./testsuite.html">testsuite</a>
<td><A HREF="./w95ie.html">w95ie</a>
<td><A HREF="./w95ras.html">w95ras</a>
<td><A HREF="./w95virus.html">w95virus</a>
<td><A HREF="./xdm.html">xdm</a>
</tr></table>
</P>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<A HREF="../index.html"><IMG SRC="../../gx/indexnew.gif"
ALT="[ Table Of Contents ]"></A>
<A HREF="../../index.html"><IMG SRC="../../gx/homenew.gif"
ALT="[ Front Page ]"></A>
<A HREF="../lg_bytes34.html"><IMG SRC="../../gx/back2.gif"
ALT="[ Previous Section ]"></A>
<A HREF="../izquierdo.html"><IMG SRC="../../gx/fwd.gif"
ALT="[ Next Section ]"></A>
</body>
</html>
<!--endcut ========================================================= -->
|