script(1) script(1)NAME script - start a shell that records terminal input and output SYNOPSIS script [-a] [file] DESCRIPTION script makes a typescript of everything printed on your ter- minal. 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 or lpr(1). If no file name is given, the typescript is saved in the file typescript. Note that script uses both standard input and standard out- put 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 termi- nals are in short supply. FILES /usr/bin/script SEE ALSO lpr(1). BUGS script places everything in the log file, meaning everything typed or appearing on the screen, including control charac- ters. If vi is invoked, whatever appeared on-screen (in- cluding invisible characters) will be placed in the log file. Control characters useful for screen output will ap- pear as garbage and will be illegible in a script. Thus it is a good idea not to use vi while using script. April, 1990 1