1 .\" $NetBSD: script.1,v 1.11 2009/10/17 19:05:54 christos Exp $
3 .\" Copyright (c) 1980, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)script.1 8.1 (Berkeley) 6/6/93
37 .Nd make typescript of terminal session
45 makes a typescript of everything printed on your terminal.
46 It is useful for students who need a hardcopy record of an interactive
47 session as proof of an assignment, as the typescript file
48 can be printed out later with
57 If no file name is given, the typescript is saved in the file
67 retaining the prior contents.
72 Useful for capturing the output of a program that behaves differently when
73 associated with a tty.
75 Don't sleep between records when playing back a timestamped session.
77 Flush output after each write.
78 This is useful for watching the script output in real time.
80 Play back a recorded session in real time.
82 Be quiet, and don't output started and ended lines.
84 Record a session with input, output, and timestamping.
87 The script ends when the forked shell exits (a
103 Certain interactive commands, such as
105 create garbage in the typescript file.
107 works best with commands that do not manipulate the
108 screen, the results are meant to emulate a hardcopy
111 The following environment variable is used by
113 .Bl -tag -width SHELL
117 exists, the shell forked by
122 is not set, the Bourne shell
124 (Most shells set this variable automatically).
140 in the log file, including linefeeds and backspaces.
141 This is not what the naive user expects.