Wed Jun 8 13:54:16 2011 UTC ()
mention combinations of flags


(yamt)
diff -r1.12 -r1.13 src/usr.bin/script/script.1

cvs diff -r1.12 -r1.13 src/usr.bin/script/script.1 (expand / switch to unified diff)

--- src/usr.bin/script/script.1 2009/10/17 22:28:33 1.12
+++ src/usr.bin/script/script.1 2011/06/08 13:54:16 1.13
@@ -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
63Append the output to 63Append the output to
64.Ar file 64.Ar file
65or 65or
66.Pa typescript , 66.Pa typescript ,
67retaining the prior contents. 67retaining the prior contents.
68.It Fl c Ar command 68.It Fl c Ar command
69Run the named 69Run the named
70.Ar command 70.Ar command
71instead of the shell. 71instead of the shell.
72Useful for capturing the output of a program that behaves differently when 72Useful for capturing the output of a program that behaves differently when
73associated with a tty. 73associated with a tty.
74.It Fl d 74.It Fl d
75Don't sleep between records when playing back a timestamped session. 75When playing back a session with the
 76.Fl p
 77flag, don't sleep between records when playing back a timestamped session.
76.It Fl f 78.It Fl f
77Flush output after each write. 79Flush output after each write.
78This is useful for watching the script output in real time. 80This is useful for watching the script output in real time.
79.It Fl p 81.It Fl p
80Play back a recorded session in real time. 82Play back a session recorded with the
 83.Fl r
 84flag in real time.
81.It Fl q 85.It Fl q
82Be quiet, and don't output started and ended lines. 86Be quiet, and don't output started and ended lines.
83.It Fl r 87.It Fl r
84Record a session with input, output, and timestamping. 88Record a session with input, output, and timestamping.
85.El 89.El
86.Pp 90.Pp
87The script ends when the forked shell exits (a 91The script ends when the forked shell exits (a
88.Em control-D 92.Em control-D
89to exit 93to exit
90the Bourne shell 94the Bourne shell
91.Pf ( Xr sh 1 ) , 95.Pf ( Xr sh 1 ) ,
92and 96and
93.Em exit , 97.Em exit ,