script(1) script(1)NAME script - starts a shell that records terminal input and output SYNOPSIS script [-a] [file] ARGUMENTS -a Writes or appends the typescript to file. file Specifies the file that is to be written to. If a filename is not given, the typescript is saved in the file typescript. DESCRIPTION script makes a typescript of everything printed on your terminal. The typescript is written to file, or appended to file if the -a option is given. It can be sent to the line printer later with the lp or lpr commands. Note that script uses both standard input and standard output and that neither may be redirected via a pipe, < or >. 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. LIMITATIONS 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. FILES /usr/bin/script Executable file SEE ALSO lpr(1) January 1992 1