332b359851
Submitted by: Norihiro Kumagai <kuma@nk.rim.or.jp> Reviewed by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>, kano@na.rim.or.jp
153 lines
4.5 KiB
Groff
153 lines
4.5 KiB
Groff
.\" Copyright (c) 1980, 1990, 1993
|
|
.\" The 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 8.1 (Berkeley) 6/6/93
|
|
.\" %FreeBSD: src/usr.bin/script/script.1,v 1.21 2004/07/03 00:24:43 ru Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd January 22, 2004
|
|
.Dt SCRIPT 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm script
|
|
.Nd üËö¾å¤Ëɽ¼¨¤·¤¿¤¹¤Ù¤Æ¤Î¤â¤Î¤Î¥í¥°¤ò¤È¤ë
|
|
.Sh ½ñ¼°
|
|
.Nm
|
|
.Op Fl akq
|
|
.Op Fl t Ar time
|
|
.Op Ar file Op Ar command ...
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢
|
|
üËö¾å¤Ëɽ¼¨¤·¤¿¤¹¤Ù¤Æ¤Î¤â¤Î¤Î¥í¥° (typescript) ¤ò¤È¤ê¤Þ¤¹¡£
|
|
µÏ¿¸å¤Ë
|
|
.Xr lpr 1
|
|
¤Ç°õºþ¤¹¤ë¤³¤È¤â¤Ç¤¤ë¤Î¤Ç¡¢
|
|
³ØÀ¸¤Î½ÉÂê¤Î¾ÚÌÀÅù¤ÇÂÐÏÃŪ¥»¥Ã¥·¥ç¥ó¤Î¥Ï¡¼¥É¥³¥Ô¡¼
|
|
¤¬É¬ÍפʤȤ¤Ê¤É¤Ë¤Ï͸ú¤Ç¤¹¡£
|
|
.Pp
|
|
¥Õ¥¡¥¤¥ë̾
|
|
.Ar file
|
|
¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð
|
|
.Nm
|
|
¤Ï
|
|
.Ar file
|
|
¤ËµÏ¿¤·¤Þ¤¹¡£
|
|
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð
|
|
.Pa typescript
|
|
¤È¤¤¤¦¥Õ¥¡¥¤¥ë̾¤ÇµÏ¿¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
°ú¿ô
|
|
.Ar command
|
|
¤ò»ØÄꤹ¤ë¤È¡¢
|
|
.Nm
|
|
¤ÏÂÐÏÃ¥·¥§¥ë¤ÎÂå¤ê¤Ë»ØÄꤷ¤¿¥³¥Þ¥ó¥É¤ò¥ª¥×¥·¥ç¥ó¤Î°ú¿ô¥Ù¥¯¥¿ÉÕ¤¤Ç¼Â¹Ô¤·¤Þ¤¹¡£
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤Ï°Ê²¼¤Î¤â¤Î¤¬¤¢¤ê¤Þ¤¹:
|
|
.Bl -tag -width indent
|
|
.It Fl a
|
|
.Ar file
|
|
¤â¤·¤¯¤Ï
|
|
.Pa typescript
|
|
¤¬¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤ì¤ËÄɲ乤ë·Á¤ÇµÏ¿¤·¤Æ¤¤¤¤Þ¤¹¡£
|
|
.It Fl k
|
|
½ÐÎϤÀ¤±¤Ç¤Ê¤¯¥×¥í¥°¥é¥à¤ËÁ÷¤é¤ì¤¿¥¡¼ÆþÎϤâµÏ¿¤·¤Þ¤¹¡£
|
|
.It Fl q
|
|
ÀŤ«¤Ê¥â¡¼¥É¤Ç¼Â¹Ô¤·¤Þ¤¹¡£³«»Ï»þ¤È½ªÎ»»þ¤Î¥¹¥Æ¡¼¥¿¥¹¥á¥Ã¥»¡¼¥¸¤ò¾Êά¤·¤Þ¤¹¡£
|
|
.It Fl t Ar time
|
|
¥¹¥¯¥ê¥×¥È½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ë¥Õ¥é¥Ã¥·¥å¤¹¤ë´Ö³Ö¤ò»ØÄꤷ¤Þ¤¹¡£
|
|
ÃÍ 0 ¤ò»ØÄꤹ¤ë¤È
|
|
.Nm
|
|
¤Ïʸ»ú I/O ¥¤¥Ù¥ó¥È¤´¤È¤Ë¥Õ¥é¥Ã¥·¥å¤·¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥é¥Ã¥·¥å´Ö³Ö¤Ï 30 ÉäǤ¹¡£
|
|
.El
|
|
.Pp
|
|
.Nm
|
|
¤Ï¡¢¥Õ¥©¡¼¥¯¤·¤¿¥·¥§¥ë (¤Þ¤¿¤Ï¥³¥Þ¥ó¥É) ¤ò½ªÎ»¤·¤¿¤È¤
|
|
(Bourne ¥·¥§¥ë
|
|
.Pf ( Xr sh 1 )
|
|
¤Ê¤é
|
|
.Em control-D
|
|
¤Ç½ªÎ»¤·¤Þ¤¹¤·¡¢
|
|
C ¥·¥§¥ë
|
|
.Xr csh 1
|
|
¤Ê¤é
|
|
.Em exit ,
|
|
.Em logout ,
|
|
.Em control-D
|
|
.Pf ( Em ignoreeof
|
|
¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç) ¤Ç½ªÎ»¤·¤Þ¤¹)¡¢µÏ¿¤ò½ª¤ï¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
.Xr vi 1
|
|
¤Ê¤É¤Î¤¢¤ë¼ï¤ÎÂÐÏÃ¥³¥Þ¥ó¥É¤Ç¤Ï¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ë¥´¥ß¤¬Æþ¤ë
|
|
¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢²èÌ̤òÁàºî¤·¤Ê¤¤¤è¤¦¤Ê¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤¦¤Þ¤¯Æ°ºî¤·¤Þ¤¹¡£
|
|
½ÐÎÏ·ë²Ì¤Ï¥Ï¡¼¥É¥³¥Ô¡¼Ã¼Ëö¤Î¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤È¸À¤¨¤ë¤Ç¤·¤ç¤¦¡£
|
|
.Sh ´Ä¶ÊÑ¿ô
|
|
.Nm
|
|
¤Ï¼¡¤Î´Ä¶ÊÑ¿ô¤ò»ÈÍѤ·¤Þ¤¹:
|
|
.Bl -tag -width SHELL
|
|
.It Ev SHELL
|
|
ÊÑ¿ô
|
|
.Ev SHELL
|
|
¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢
|
|
.Nm
|
|
¤Ï¤³¤Î¥·¥§¥ë¤ò¥Õ¥©¡¼¥¯¤·¤Þ¤¹¡£
|
|
.Ev SHELL
|
|
¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï Bourne ¥·¥§¥ë¤¬»È¤ï¤ì¤Þ¤¹¡£
|
|
(¤Û¤È¤ó¤É¤Î¥·¥§¥ë¤Ï¤³¤ÎÊÑ¿ô¤ò¼«Æ°Åª¤ËÀßÄꤷ¤Þ¤¹)
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr csh 1
|
|
(
|
|
.Em history
|
|
µ¡Ç½¤Ë´ØÏ¢)
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï
|
|
.Bx 3.0
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ë¥é¥¤¥ó¥Õ¥£¡¼¥É¤ä¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤â´Þ¤á¡¢
|
|
.Sy ¤Ê¤ó¤Ç¤â
|
|
µÏ¿
|
|
¤·¤Þ¤¹¡£¤³¤Î¤¿¤á¥æ¡¼¥¶¤Î´üÂÔ¤·¤¿¤â¤Î¤È°ã¤¦¥í¥°¤Ë¤Ê¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
¥¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤ò»ØÄꤻ¤º¤Ë¥³¥Þ¥ó¥É¤ò»ØÄꤹ¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
|
|
¤³¤ì¤Ï°ú¿ô²òÀϤθߴ¹À³ÎÊݤΤ¿¤á¤Ç¤¹¡£
|
|
.Pp
|
|
.Fl k
|
|
¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥¨¥³¡¼¥¥ã¥ó¥»¥ë¤ÏÍýÁÛ¤ÈÄø±ó¤¤¤Ç¤¹¡£
|
|
¥¹¥ì¡¼¥ÖüËö¥â¡¼¥É¤Î ECHO ¥â¡¼¥É¤¬¥Á¥§¥Ã¥¯¤µ¤ì¡¢
|
|
¼êÆ°¥¨¥³¡¼µÏ¿¤ò¤¤¤ÄÈò¤±¤ë¤Ù¤¤«¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Þ¤¹¡£
|
|
¤³¤ì¤Ï raw ¥â¡¼¥É»þ¡¢¤¹¤Ê¤ï¤Á¥×¥í¥°¥é¥à¤¬¼êÆ°¥¨¥³¡¼¤ò¹Ô¤¦»þ¤Ë¤ÏÆ°ºî¤·¤Þ¤»¤ó¡£
|