OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / util-linux / release / man1 / script.1
1 .\" Copyright (c) 1980, 1990 Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)script.1    6.5 (Berkeley) 7/27/91
33 .\"
34 .\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
35 .\" Translated Thu 14 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
36 .\" Updated Tue Jan  9 18:33:39 JST 2001
37 .\"      by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
38 .\" Updated Sat Nov 17 15:27:01 JST 2001
39 .\"      by Yuichi SATO <ysato@h4.dion.ne.jp>
40 .\" Updated & Modified Sat May  1 17:38:44 JST 2004
41 .\"      by Yuichi SATO <ysato444@yahoo.co.jp>
42 .\"
43 .\" WORD:       typescript      ¼Ì¤·
44 .\"
45 .Dd July 30, 2000
46 .Dt SCRIPT 1
47 .Os Linux
48 .Sh Ì¾Á°
49 .Nm script
50 .Nd Ã¼Ëö¥»¥Ã¥·¥ç¥ó¤Î¼Ì¤· (typescript) ¤òºîÀ®¤¹¤ë¡£
51 .Sh ½ñ¼°
52 .Nm script
53 .Op Fl a
54 .Op Fl c Ar COMMAND
55 .Op Fl f
56 .Op Fl q
57 .Op Fl t
58 .Op Ar file
59 .Sh ÀâÌÀ
60 .Nm script
61 ¤ÏüËö¤Ëɽ¼¨¤µ¤ì¤¿¤â¤Î¤¹¤Ù¤Æ¤Î¼Ì¤· (typescript) ¤òºîÀ®¤¹¤ë¡£
62 ¤³¤ì¤Ï½ÉÂê¤ò½Ð¤µ¤ì¤¿³ØÀ¸¤¬¡¢¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê¥»¥Ã¥·¥ç¥ó¤Î
63 ¥Ï¡¼¥É¥³¥Ô¡¼¤òɬÍפȤ¹¤ë¾ì¹ç¤Ê¤É¤ËÊØÍø¤À¤í¤¦¡£
64 µ­Ï¿¤µ¤ì¤¿ typescript ¥Õ¥¡¥¤¥ë¤ò¡¢¸å¤Ç
65 .Xr lpr 1
66 ¤Ê¤É¤ò»È¤Ã¤Æ°õºþ¤¹¤ì¤ÐÎɤ¤¡£
67 .Pp
68 °ú¤­¿ô
69 .Ar file
70 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢
71 .Nm
72 ¤Ï¤¹¤Ù¤Æ¤Îµ­Ï¿¤ò
73 .Ar file
74 ¤ËÊݸ¤¹¤ë¡£¥Õ¥¡¥¤¥ë̾¤¬Í¿¤¨¤é¤ì¤Ê¤±¤ì¤Ð¡¢¼Ì¤·¤Ï
75 .Pa typescript
76 ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ËÊݸ¤µ¤ì¤ë¡£
77 .Pp
78 ¥ª¥×¥·¥ç¥ó:
79 .Bl -tag -width Ds
80 .It Fl a
81 ½ÐÎϤò
82 .Ar file
83 ¤Þ¤¿¤Ï
84 .Pa typescript
85 ¤ËÄɲà(append) ¤¹¤ë¡£
86 °ÊÁ°¤ÎÆâÍƤ¬Êݸ¤µ¤ì¤ë¡£
87 .It Fl c Ar COMMAND
88 ¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê¥·¥§¥ë¤Ç¤Ï¤Ê¤¯¡¢COMMAND ¤ò¼Â¹Ô¤¹¤ë¡£
89 ɸ½à½ÐÎϤ¬Ã¼Ëö (tty) ¤Ç¤Ê¤¤¤ÈÆ°ºî¤¬ÊѤï¤Ã¤Æ¤·¤Þ¤¦¥×¥í¥°¥é¥à¤Î½ÐÎϤò¡¢
90 script ¤¬´Êñ¤Ëµ­Ï¿¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¡£
91 .It Fl f
92 ½ñ¤­¹þ¤ß¤ò¤¹¤ë¤´¤È¤Ë½ÐÎϤò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
93 ¤³¤ì¤Ï±ó³Ö¤Ç¶¦Æ±ºî¶È¤ò¤¹¤ë¾ì¹ç¤ËÎɤ¤¡£
94 °ìÊý¤Î¿Í¤¬ `mkfifo foo; script -f foo' ¤ò¼Â¹Ô¤·¤¿¾ì¹ç¡¢
95 ¤â¤¦°ìÊý¤Î¿Í¤Ï¡¢`cat foo' ¤ò»È¤¦¤³¤È¤Ë¤è¤ê¡¢
96 ²¿¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¤«¤ò¥ê¥¢¥ë¥¿¥¤¥à¤Ç´Æ»ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
97 .It Fl q
98 ²ÉÌÛ¤ÊÆ°ºî¤Ë¤¹¤ë¡£
99 .It Fl t
100 ¥¿¥¤¥ß¥ó¥°¥Ç¡¼¥¿¤òɸ½à¥¨¥é¡¼¤Ë½ÐÎϤ¹¤ë¡£
101 ¤³¤Î¥Ç¡¼¥¿¤Ï¥¹¥Ú¡¼¥¹¤Ç¶èÀÚ¤é¤ì¤¿ 2 ¤Ä¤Î¥Õ¥£¡¼¥ë¥É¤«¤é¤Ê¤ë¡£
102 1 ÈÖÌܤΥե£¡¼¥ë¥É¤Ï¡¢Á°¤Î½ÐÎϤ«¤é¤Î·Ð²á»þ´Ö¤òɽ¤¹¡£
103 2 ÈÖÌܤΥե£¡¼¥ë¥É¤Ï¡¢¤½¤Î¤È¤­¤Ë²¿Ê¸»ú½ÐÎϤµ¤ì¤¿¤«¤òɽ¤¹¡£
104 ¤³¤Î¾ðÊó¤Ï¡¢¥¿¥¤¥Ô¥ó¥°¤È½ÐÎϤμºݤÎÃÙ±ä»þ´Ö¤Ç¡¢¼Ì¤·¤òºÆ¸½¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
105 .El
106 .Pp
107 script ¤Ï fork ¤µ¤ì¤¿¥·¥§¥ë¤¬½ªÎ»¤·¤¿¤È¤­¤Ëµ­Ï¿¤ò½ª¤¨¤ë
108 (Bourne ¥·¥§¥ë
109 .Pf ( Xr sh 1 )
110 ¤ò½ª¤ï¤ë¤Ë¤Ï
111 .Em control-D
112 ¤òÆþÎϤ¹¤ë¡£
113 C ¥·¥§¥ë
114 .Pf ( Xr csh 1)
115 ¤Ê¤é
116 .Em exit ,
117 .Em logout ,
118 .Em control-d
119 ¤Î¤¤¤º¤ì¤«¤òÆþÎϤ¹¤ë¡£
120 ¤¿¤À¤·
121 .Em control-d
122 ¤¬Í­¸ú¤Ê¤Î¤Ï
123 .Em ignoreeof
124 ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤¢¤ë)¡£
125 .Pp
126 .Xr vi 1
127 ¤Î¤è¤¦¤Ê¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê¥³¥Þ¥ó¥É¤Ç¤Ï¡¢
128 typescript ¥Õ¥¡¥¤¥ë¤Ë¥´¥ß¤¬¤Ç¤­¤ë¤³¤È¤¬¤¢¤ë¡£
129 .Nm script
130 ¤Ï²èÌ̤òÁàºî¤·¤Ê¤¤¥³¥Þ¥ó¥É¤ò°·¤Ã¤¿¤È¤­¤ËºÇ¤â¤¦¤Þ¤¯Æ°ºî¤¹¤ë¡£
131 ¤½¤Î¾ì¹ç¤Î·ë²Ì¤Ï¡¢¥Ï¡¼¥É¥³¥Ô¡¼Ã¼Ëö¤ò¥¨¥ß¥å¥ì¡¼¥È¤·¤¿¤â¤Î¤È¤Ê¤ë¡£
132 .Sh ´Ä¶­ÊÑ¿ô
133 .Nm script
134 ¤Ï°Ê²¼¤Î´Ä¶­ÊÑ¿ô¤òÍѤ¤¤ë¡£
135 .Bl -tag -width SHELL
136 .It Ev SHELL
137 ´Ä¶­ÊÑ¿ô
138 .Ev SHELL
139 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¡¢
140 .Nm script
141 ¤¬ fork ¤¹¤ë¥·¥§¥ë¤Ï¤½¤ì¤Ë¤Ê¤ë¡£
142 .Ev SHELL
143 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
144 Bourne ¥·¥§¥ë¤¬ÍѤ¤¤é¤ì¤ë¡£
145 (¤Û¤È¤ó¤É¤Î¥·¥§¥ë¤Ï¤³¤Î´Ä¶­ÊÑ¿ô¤ò¼«Æ°Åª¤Ë¥»¥Ã¥È¤¹¤ë¡£)
146 .El
147 .Sh ´ØÏ¢¹àÌÜ
148 .Xr csh 1
149 .Pf ( Em history
150 ¥á¥«¥Ë¥º¥à¤Ë´Ø¤¹¤ëÉôʬ),
151 .Xr scriptreplay 1 .
152 .Sh ÍúÎò
153 .Nm script
154 ¥³¥Þ¥ó¥É¤Ï
155 .Bx 3.0
156 ¤ÇÅо줷¤¿¡£
157 .Sh ¥Ð¥°
158 .Nm script
159 ¤Ï¥é¥¤¥ó¥Õ¥£¡¼¥É¤ä¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤â´Þ¤á¡¢
160 .Sy ¤¹¤Ù¤Æ
161 ¤ò¥í¥°¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¤³¤à¡£
162 ¤³¤ì¤ÏÉáÄ̤Υ桼¥¶¤¬´üÂÔ¤¹¤ë¤â¤Î¤È¤Ï°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£