xref: /original-bsd/usr.bin/script/script.1 (revision 6b3572dd)
Copyright (c) 1980, 1990 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)script.1 6.2 (Berkeley) 06/24/90

SCRIPT 1 "%Q"
C 4
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 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.

BUGS
Script places everything in the log file. This is not what the naive user expects.