Unleashed v1.4
[unleashed.git] / share / man / man1 / script.1
blob8723c720cfd46d0dc80836d618f77cd1ec867461
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 2004, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SCRIPT 1 "Jan 30, 2004"
7 .SH NAME
8 script \- make record of a terminal session
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBscript\fR [\fB-a\fR] [\fIfilename\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBscript\fR utility makes a record of everything printed on your screen.
19 The record is written to \fIfilename\fR. If no file name is given, the record
20 is saved in the file \fBtypescript\fR. See WARNINGS.
21 .sp
22 .LP
23 The \fBscript\fR command forks and creates a sub-shell, according to the value
24 of \fB$SHELL\fR, and records the text from this session. The script ends when
25 the forked shell exits or when Control-d is typed.
26 .SH OPTIONS
27 .sp
28 .LP
29 The following option is supported:
30 .sp
31 .ne 2
32 .na
33 \fB\fB-a\fR\fR
34 .ad
35 .RS 6n
36 Appends the session record to \fIfilename\fR, rather than overwriting it.
37 .RE
39 .SH NOTES
40 .sp
41 .LP
42 \fBscript\fR places everything that appears on the screen in \fIfilename\fR,
43 including prompts.
44 .SH ATTRIBUTES
45 .sp
46 .LP
47 See \fBattributes\fR(5) for descriptions of the following attributes:
48 .sp
50 .sp
51 .TS
52 box;
53 c | c
54 l | l .
55 ATTRIBUTE TYPE  ATTRIBUTE VALUE
57 CSI     Enabled
58 .TE
60 .SH SEE ALSO
61 .sp
62 .LP
63 \fBattributes\fR(5)
64 .SH WARNINGS
65 .sp
66 .LP
67 \fBscript\fR can pose a security risk when used in directories that are
68 writable by other users (for example, \fB/tmp\fR), especially when run by a
69 privileged user, that is, root. Be sure that \fBtypescript\fR is not a link
70 before running \fBscript\fR.