Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ script(1) — Interactive 3.2r4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

lp(1)

lpr(1)

sh(1)

script(1)  —  

NAME

script − make typescript of a terminal session

SYNOPSIS

script [ −a ] [ filename ]

DESCRIPTION

script makes a typescript of everything printed on your terminal.  It is useful for making a hardcopy record of an interactive session, since the typescript file can be printed out with lp(1) or lpr(1).

If the argument filename is given, script saves all dialogue in filename. If no file name is given, the typescript is saved in the file typescript. 

The −a option causes the output to be appended to filename or typescript, retaining the prior contents. 

The script ends when the forked shell exits (typically by typing the Control-d character, or entering the "exit" command.) 

Certain interactive commands, such as vi(1), use terminal escape sequences to manipulate the terminal screen, essentially creating garbage in the typescript file. script works best with commands that do not manipulate the screen, since the results are meant to emulate a hardcopy terminal. 

ENVIRONMENT

script utilizes the SHELL environment variable to determine which shell to execute.  If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most shells set this variable automatically). 

SEE ALSO

csh(1), lp(1), lpr(1), sh(1). 

NOTES

script places everything in the log file, including linefeeds, backspaces, and terminal escape sequences.  This is not what the naive user expects. 

script requires that the pseudo-tty additional driver package be installed. 

CREDITS

This utility was developed at the University of California at Berkeley and is used with permission. 

ADDED VALUE

This entry, supplied by SunSoft, Inc., is an extension of UNIX System V. 

\*U  —  Version 1.0

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026