| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: script.1,v 1.12 2009/10/17 22:28:33 wiz Exp $ | | 1 | .\" $NetBSD: script.1,v 1.13 2011/06/08 13:54:16 yamt Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1980, 1990, 1993 | | 3 | .\" Copyright (c) 1980, 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| @@ -62,32 +62,36 @@ Option: | | | @@ -62,32 +62,36 @@ Option: |
62 | .It Fl a | | 62 | .It Fl a |
63 | Append the output to | | 63 | Append the output to |
64 | .Ar file | | 64 | .Ar file |
65 | or | | 65 | or |
66 | .Pa typescript , | | 66 | .Pa typescript , |
67 | retaining the prior contents. | | 67 | retaining the prior contents. |
68 | .It Fl c Ar command | | 68 | .It Fl c Ar command |
69 | Run the named | | 69 | Run the named |
70 | .Ar command | | 70 | .Ar command |
71 | instead of the shell. | | 71 | instead of the shell. |
72 | Useful for capturing the output of a program that behaves differently when | | 72 | Useful for capturing the output of a program that behaves differently when |
73 | associated with a tty. | | 73 | associated with a tty. |
74 | .It Fl d | | 74 | .It Fl d |
75 | Don't sleep between records when playing back a timestamped session. | | 75 | When playing back a session with the |
| | | 76 | .Fl p |
| | | 77 | flag, don't sleep between records when playing back a timestamped session. |
76 | .It Fl f | | 78 | .It Fl f |
77 | Flush output after each write. | | 79 | Flush output after each write. |
78 | This is useful for watching the script output in real time. | | 80 | This is useful for watching the script output in real time. |
79 | .It Fl p | | 81 | .It Fl p |
80 | Play back a recorded session in real time. | | 82 | Play back a session recorded with the |
| | | 83 | .Fl r |
| | | 84 | flag in real time. |
81 | .It Fl q | | 85 | .It Fl q |
82 | Be quiet, and don't output started and ended lines. | | 86 | Be quiet, and don't output started and ended lines. |
83 | .It Fl r | | 87 | .It Fl r |
84 | Record a session with input, output, and timestamping. | | 88 | Record a session with input, output, and timestamping. |
85 | .El | | 89 | .El |
86 | .Pp | | 90 | .Pp |
87 | The script ends when the forked shell exits (a | | 91 | The script ends when the forked shell exits (a |
88 | .Em control-D | | 92 | .Em control-D |
89 | to exit | | 93 | to exit |
90 | the Bourne shell | | 94 | the Bourne shell |
91 | .Pf ( Xr sh 1 ) , | | 95 | .Pf ( Xr sh 1 ) , |
92 | and | | 96 | and |
93 | .Em exit , | | 97 | .Em exit , |