1script(1) User Commands script(1)
2
3
4
6 script - make record of a terminal session
7
9 script [-a] [filename]
10
11
13 The script utility makes a record of everything printed on your screen.
14 The record is written to filename. If no file name is given, the record
15 is saved in the file typescript. See WARNINGS.
16
17
18 The script command forks and creates a sub-shell, according to the
19 value of $SHELL, and records the text from this session. The script
20 ends when the forked shell exits or when Control-d is typed.
21
23 The following option is supported:
24
25 -a Appends the session record to filename, rather than overwriting
26 it.
27
28
30 script places everything that appears on the screen in filename,
31 including prompts.
32
34 See attributes(5) for descriptions of the following attributes:
35
36
37
38
39 ┌─────────────────────────────┬─────────────────────────────┐
40 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
41 ├─────────────────────────────┼─────────────────────────────┤
42 │Availability │SUNWcsu │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │CSI │Enabled │
45 └─────────────────────────────┴─────────────────────────────┘
46
48 attributes(5)
49
51 script can pose a security risk when used in directories that are
52 writable by other users (for example, /tmp), especially when run by a
53 privileged user, that is, root. Be sure that typescript is not a link
54 before running script.
55
56
57
58SunOS 5.11 30 Jan 2004 script(1)