script(1) script(1)
NAME
script - make typescript of terminal session
SYNOPSIS
script [-a] [file]
DESCRIPTION
script makes a typescript of everything printed on your
terminal. The typescript is written to file, or appended to
file if the -a flag option is given. It can be sent to the
line printer later with lpr. If no file name is given, the
typescript is saved in the file typescript.
The script ends when the forked shell exits.
This program is useful when using a crt and a hard-copy
record of the dialog is desired, as for a student handing in
a program that was developed on a crt when hard-copy
terminals are in short supply.
FILES
/usr/bin/script
BUGS
script places everything in the log file, meaning everything
typed or appearing on the screen, including control
characters. If vi is invoked, whatever appeared on-screen
(including invisible characters) will be placed in the log
file. Control characters useful for screen output will
appear as garbage and will be illegible in a script. Thus
it is a good idea not to use vi while using script.
Page 1 (last mod. 1/16/87)