SUMMARY: Session log

From: Alberto Ferrari (
Date: Fri Apr 18 1997 - 00:36:18 CDT

>Dear friends:
>Most times I would like to capture a whole *text* session in
>a file.
>I mean, given a shell (csh or ksh, or even sh), I would like
>log standard input, output and error into a file whose
>progress could be shown on-line on another terminal
>(through tail -f, for example).
>Besides auditing reasons, this could be useful to monitor
>somebody's behaviour or to show a parter an installation
>procedure or to explain him your latest script, for example.
ALSO: to document upgrades so as to remind myself of
what actually
>How about near-graphical text sessions?
>I know there was product in SCO, but it was intended to
>monitor users.
>Thank you

Due to overwhelming reponse, I propose this to be a FAQ
The answers were:
a) /usr/bin/script command - make record of a terminal
The 'script' program can be used to log everything going
to/from your
Don't forget to type "exit" when you're done logging or
you'll have a VERY
large log after a while.
Not useful for edit sessions.

2) To share a terminal session with someone so that both
can see and type,
use the 'kibitz' program, it comes with the expect package.

      Exploring Expect
      Don Libes
      O'Reilly & Associates, Inc.
      ISBN 1-56592-090-2
      $32.95 USA
      $46.95 Canada

The book includes an example of how to do the kind of
capture you're
interested in. The O'Reilly company has a WWW site:

3) the /usr/openwin/bin/xterm should have an option 'Log
to File', which is
accessible via Contol-LeftMouseButton. It can be turned on
and off and logs
to a file XtermLog.XXXXX, where XXXXX is a PID.

4) I add: OpenLook textedit has a menu option that lets you
save the screen buffer
(which can be *very* long) into a file.

5) There's also a program that lets you tap into a tty and
monitor the traffic but
I can't remember the name - ttywatch?

6) there is a public-domain program you could use... i
believe it is
'typescript.' it comes with most linux distributions,

7) We sell a product called PEEK that will let you see what
someone is doing.
You see their input, their output. When their screen clears,
yours does, etc.
You can also log this information to a file. Finally, you can
type on their
behalf, if you wish; what you type will act as if they had
typed it.
Computronics - (

Many thanks to (sorry if I miss one):
Gene Rackow <>
Frank Pardo <>
Barry Brown <>
"Rick von Richter" <>

"Bruetsch, Markus" <>
Steve Ehrhardt <>
Bob Fulwiler <>
Brent Chivers <>
"Craig Loudon" <>
Per Akesson <>


Glenn Satchell - Uniq Professional Services

"Mike Salehi" <>
Morgan Jones <>

D461-Viet_Q_Hoang082572 <>
Gregory M Polanski <>
"William L. Hamlin" <>
"Marcus Pless" <>
"Matthew J. Hill" <>
"Matthew Stier" <>
Randy Styka <>
Stuart Bailey <>
Stefan <>

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:51 CDT