BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man1 / script.1
CommitLineData
e51e7121
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)script.1 6.1 (Berkeley) 4/29/85
e51e7121 6.\"
95f51977 7.TH SCRIPT 1 "April 29, 1985"
e51e7121
KM
8.UC 4
9.SH NAME
10script \- make typescript of terminal session
11.SH SYNOPSIS
12.B script
13[
14.B \-a
e51e7121
KM
15] [ file ]
16.SH DESCRIPTION
17.I Script
18makes a typescript of everything printed on your terminal.
f078f674
KM
19The typescript is written to
20.IR file ,
21or appended to
22.IR file
23if the
24.B \-a
25option is given.
26It can be sent to the line printer later with
27.IR lpr .
28If no file name is given, the typescript
29is saved in the file
30.IR typescript .
e51e7121 31.PP
f078f674 32The script ends when the forked shell exits.
e51e7121
KM
33.PP
34This program is useful when using a crt and a hard-copy
35record of the dialog is desired, as for a student handing
36in a program that was developed on a crt when hard-copy
37terminals are in short supply.
e51e7121 38.SH BUGS
f078f674
KM
39.I Script
40places
41.B everything
42in the log file. This is not what the naive user expects.