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"
8 script \- make record of a terminal session
12 \fBscript\fR [\fB-a\fR] [\fIfilename\fR]
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.
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.
29 The following option is supported:
36 Appends the session record to \fIfilename\fR, rather than overwriting it.
42 \fBscript\fR places everything that appears on the screen in \fIfilename\fR,
47 See \fBattributes\fR(5) for descriptions of the following attributes:
55 ATTRIBUTE TYPE ATTRIBUTE VALUE
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.