1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
.\" Copyright (c) 1980, 1990 Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)script.1 6.5 (Berkeley) 7/27/91
.\"
.\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
.\" Translated Thu 14 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\" Updated Tue Jan 9 18:33:39 JST 2001
.\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
.\" Updated Sat Nov 17 15:27:01 JST 2001
.\" by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated & Modified Sat May 1 17:38:44 JST 2004
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.\" WORD: typescript ̤
.\"
.Dd July 30, 2000
.Dt SCRIPT 1
.Os Linux
.Sh ̾
.Nm script
.Nd üåμ̤ (typescript) 롣
.Sh
.Nm script
.Op Fl a
.Op Fl c Ar COMMAND
.Op Fl f
.Op Fl q
.Op Fl t
.Op Ar file
.Sh
.Nm script
üɽ줿Τ٤Ƥμ̤ (typescript) 롣
ϽФ줿饯ƥ֤ʥå
ϡɥԡɬפȤʤɤ
Ͽ줿 typescript ե
.Xr lpr 1
ʤɤȤäưɤ
.Pp
.Ar file
ꤵȡ
.Nm
Ϥ٤ƤεϿ
.Ar file
¸롣ե̾ͿʤС̤
.Pa typescript
Ȥե¸롣
.Pp
ץ:
.Bl -tag -width Ds
.It Fl a
Ϥ
.Ar file
ޤ
.Pa typescript
ɲ (append) 롣
Ƥ¸롣
.It Fl c Ar COMMAND
饯ƥ֤ʥǤϤʤCOMMAND ¹Ԥ롣
ɸϤü (tty) ǤʤưѤäƤޤץνϤ
script ñ˵ϿǤ褦ˤ롣
.It Fl f
ߤ뤴Ȥ˽Ϥեå夹롣
ϱ֤ǶƱȤɤ
οͤ `mkfifo foo; script -f foo' ¹Ԥ硢
⤦οͤϡ`cat foo' ȤȤˤꡢ
¹ԤƤ뤫ꥢ륿Ǵƻ뤹뤳ȤǤ롣
.It Fl q
ۤưˤ롣
.It Fl t
ߥǡɸ२顼˽Ϥ롣
ΥǡϥڡǶڤ줿 2 ĤΥեɤʤ롣
1 ܤΥեɤϡνϤηв֤ɽ
2 ܤΥեɤϡΤȤ˲ʸϤ줿ɽ
ξϡԥȽϤμºݤٱ֤ǡ̤Ƹ뤿˻Ȥ롣
.El
.Pp
script fork 줿뤬λȤ˵Ͽ
(Bourne
.Pf ( Xr sh 1 )
ˤ
.Em control-D
Ϥ롣
C
.Pf ( Xr csh 1)
ʤ
.Em exit ,
.Em logout ,
.Em control-d
Τ줫Ϥ롣
.Em control-d
ͭʤΤ
.Em ignoreeof
åȤƤʤǤ)
.Pp
.Xr vi 1
Τ褦ʥ饯ƥ֤ʥޥɤǤϡ
typescript ե˥ߤǤ뤳Ȥ롣
.Nm script
ϲ̤ʤޥɤäȤ˺Ǥ⤦ޤư롣
ξη̤ϡϡɥԡüߥ졼ȤΤȤʤ롣
.Sh Ķѿ
.Nm script
ϰʲδĶѿѤ롣
.Bl -tag -width SHELL
.It Ev SHELL
Ķѿ
.Ev SHELL
Ƥȡ
.Nm script
fork 륷Ϥˤʤ롣
.Ev SHELL
ƤʤС
Bourne 뤬Ѥ롣
(ۤȤɤΥϤδĶѿưŪ˥åȤ롣)
.El
.Sh Ϣ
.Xr csh 1
.Pf ( Em history
ᥫ˥˴ؤʬ),
.Xr scriptreplay 1 .
.Sh
.Nm script
ޥɤ
.Bx 3.0
о줷
.Sh Х
.Nm script
ϥ饤եɤХåڡޤᡢ
.Sy ٤
ե˽ࡣ
̤Υ桼ԤΤȤϰۤʤ뤫⤷ʤ
|