 |
Index for Section 1 |
|
 |
Alphabetical listing for S |
|
 |
Bottom of page |
|
script(1)
NAME
script - Makes a transcript of terminal session
SYNOPSIS
script [-a] [file]
The script command makes a transcript of everything printed on your
terminal.
OPTIONS
-a Appends the transcript to file rather than writing it to file.
OPERANDS
file
The name of an output file that will contain the transcript of the
session. If this parameter is omitted, the file typescript is written.
DESCRIPTION
The transcript is written to file, or appended to file if the -a option is
given. If no file name is given, the transcript is saved in the file
typescript.
The script ends when the forked shell exits.
This program is useful when you are using a CRT and want a hard-copy record
of the dialog (for example, a technical writer might create an example of a
working session this way).
If you specify the -a option and the file does not exist, it is created.
If you do not specify the -a option and the file exists, it is replaced.
RESTRICTIONS
The script command requires a streams based terminal. In single user mode,
streams may not be enabled. Under these circumstances, script will exit
with no action. If you are the superuser and need to run this command in
single user mode, use the following special instructions.
Enabling Streams
If it is necessary to enable a streams environment in the single user mode,
enter the command /sbin/init.d/streams. This command is available to the
superuser only.
SEE ALSO
Commands: autopush(8), cat(1), echo(1), strsetup(8), tee(1)
System Administration
 |
Index for Section 1 |
|
 |
Alphabetical listing for S |
|
 |
Top of page |
|