Content-type: text/html Man page of script

script

Section: User Commands (1)
Index Return to Main Contents
 

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

Appends the transcript to file rather than writing it to file.
 

OPERANDS

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

NAME
SYNOPSIS
OPTIONS
OPERANDS
DESCRIPTION
RESTRICTIONS
Enabling Streams
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:43:02 GMT, October 02, 2010