Content-type: text/html
script - Makes a transcript of terminal session
script [-a] [file]
The
script
command makes a transcript of everything
printed on your terminal.
Appends the transcript to
file
rather than writing it to
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.
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.
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.
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.
Commands: autopush(8), cat(1), echo(1), strsetup(8), tee(1)
System Administration