OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / procps / draft / man1 / watch.1
1 .\"
2 .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved.
3 .\" Translated Tue Nov 14 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
4 .\" Updated & Modified Fri Jul 15 02:40:41 JST 2005
5 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
6 .\"
7 .TH WATCH 1 "1999 Apr 3" " " "Linux User's Manual"
8 .\"O .SH NAME
9 .\"O watch \- execute a program periodically, showing output fullscreen
10 .SH Ì¾Á°
11 watch \- ¥×¥í¥°¥é¥à¤òÄê´üŪ¤Ë¼Â¹Ô¤·¡¢½ÐÎϤò¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¤Çɽ¼¨¤¹¤ë
12 .\"O .SH SYNOPSIS
13 .SH ½ñ¼°
14 .B watch
15 .I [\-dhvt] [\-n <seconds>] [\-\-differences[=cumulative]] [\-\-help] [\-\-interval=<seconds>] [\-\-no\-title] [\-\-version] <command>
16 .\"O .SH DESCRIPTION
17 .SH ÀâÌÀ
18 .\"O .BR watch
19 .\"O runs
20 .\"O .I command
21 .\"O repeatedly, displaying its output (the first screenfull).  This allows you to
22 .\"O watch the program output change over time.  By default, the program is run
23 .\"O every 2 seconds; use 
24 .\"O .I -n
25 .\"O or
26 .\"O .I --interval
27 .\"O to specify a different interval.
28 .B watch
29 ¤Ï
30 .I command
31 ¤ò·«¤êÊÖ¤·¼Â¹Ô¤·¡¢¤½¤Î½ÐÎϤòɽ¼¨¤¹¤ë (°ì²èÌ̤˼ý¤Þ¤ë°ìÇÕ¤Þ¤Ç)¡£
32 .B watch
33 ¤òÍѤ¤¤ë¤È¡¢¥×¥í¥°¥é¥à¤Î½ÐÎϤηлþÊѲ½¤ò´Æ»ë¤Ç¤­¤ë¡£
34 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥×¥í¥°¥é¥à¤Ï 2 É䪤­¤Ëµ¯Æ°¤µ¤ì¤ë¡£
35 »þ´Ö¤Î´Ö³Ö¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢
36 .IR -n " ¤Þ¤¿¤Ï " --interval
37 ¤òÍѤ¤¤ë¡£
38 .PP
39 .\"O The
40 .\"O .I -d
41 .\"O or
42 .\"O .I --differences
43 .\"O flag will highlight the differences between successive updates.  The 
44 .\"O .I --cumulative
45 .\"O option makes highlighting "sticky", presenting a running display of all
46 .\"O positions that have ever changed.  The
47 .IR -d " ¤Þ¤¿¤Ï " --differnces
48 ¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢¹¹¿·¤¬¹Ô¤ï¤ì¤¿¤È¤­¡¢
49 Á°²ó¤È°Û¤Ê¤Ã¤Æ¤¤¤ëÉôʬ¤ò¥Ï¥¤¥é¥¤¥Èɽ¼¨¤¹¤ë¡£
50 .I cumulative
51 ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ë¤È¡¢¥Ï¥¤¥é¥¤¥È¤¬ "sticky" ¤Ë¤Ê¤ë¡£
52 ¤¹¤Ê¤ï¤Á¡¢
53 ¼Â¹Ô¤¬³«»Ï¤µ¤ì¤Æ¤«¤éÊѹ¹¤¬¤¢¤Ã¤¿Á´¤Æ¤ÎÉôʬ¤ò¥Ï¥¤¥é¥¤¥È¤Çɽ¼¨¤¹¤ë¡£
54 .\"O .I -t
55 .\"O or
56 .\"O .I --no-title
57 .\"O option turns off the header showing the interval, command, and current
58 .\"O time at the top of the display, as well as the following blank line.
59 .IR -t " ¤Þ¤¿¤Ï " --no-title
60 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢²èÌ̤ÎÀèƬ¹Ô¤Ë
61 »þ´Ö´Ö³Ö¡¦¥³¥Þ¥ó¥É̾¡¦¸½ºß»þ¹ï¤ò¼¨¤¹¥Ø¥Ã¥À¤¬É½¼¨¤µ¤ì¤º¡¢
62 ¤½¤Î¸å¤Î¶õ¹Ô¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£
63 .PP
64 .\"O .BR watch
65 .\"O will run until interrupted.
66 .B watch
67 ¤ÏÃæÃǤµ¤ì¤ë¤Þ¤Ç¼Â¹Ô¤ò³¤±¤ë¡£
68 .\"O .SH NOTE
69 .SH Ãí°Õ
70 .\"O Note that
71 .\"O .I command
72 .\"O is given to "sh -c"
73 .\"O which means that you may need to use extra quoting to get the desired effect.
74 .I command
75 ¤Ï "sh -c" ¤ËÍ¿¤¨¤é¤ì¤ë¡£¤·¤¿¤¬¤Ã¤Æ
76 .I command
77 ¤ò˾¤ß¤ÎÄ̤ê¤ËÆ°ºî¤µ¤»¤ë¤Ë¤Ï¡¢¥¯¥©¡¼¥È¤ò;ʬ¤ËÍѤ¤¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
78 .PP
79 .\"O Note that POSIX option processing is used (i.e., option processing stops at
80 .\"O the first non-option argument).  This means that flags after
81 .\"O .I command
82 .\"O don't get interpreted by
83 .\"O .BR watch
84 .\"O itself.
85 POSIX ¤Î¥ª¥×¥·¥ç¥ó½èÍý¤¬ÍѤ¤¤é¤ì¤ë
86 (¤Ä¤Þ¤ê¡¢¥ª¥×¥·¥ç¥ó½èÍý¤ÏºÇ½é¤Ë¥ª¥×¥·¥ç¥ó°Ê³°¤Î°ú¿ô¤¬¸½¤ì¤¿»þÅÀ¤Ç½ªÎ»¤¹¤ë)
87 ¤³¤È¤ËÃí°Õ¤·¤ÆÍߤ·¤¤¡£
88 ¤Ä¤Þ¤ê¡¢
89 .I command
90 °Ê¹ß¤Î¥Õ¥é¥°¤Ï
91 .B watch
92 ¤Ë¤è¤Ã¤Æ¤Ï²ò¼á¤µ¤ì¤Ê¤¤¡£
93 .\"O .SH EXAMPLES
94 .SH Îã
95 .PP
96 .\"O To watch for mail, you might do
97 ¥á¡¼¥ë¤ò´Æ»ë¤¹¤ë:
98 .IP
99 watch \-n 60 from
100 .PP
101 .\"O To watch the contents of a directory change, you could use
102 ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¿È¤ÎÊѲ½¤ò´Æ»ë¤¹¤ë:
103 .IP
104 watch \-d ls \-l
105 .PP
106 .\"O If you're only interested in files owned by user joe, you might use 
107 ¥æ¡¼¥¶¡¼ joe ¤Î½êÍ­¤¹¤ë¥Õ¥¡¥¤¥ë¤Î¤ß¤ò´Æ»ë¤¹¤ë:
108 .IP
109 watch \-d 'ls \-l | fgrep joe'
110 .PP
111 .\"O To see the effects of quoting, try these out
112 ¥¯¥©¡¼¥È¤Î¸ú²Ì¤ò¸«¤Æ¤ß¤¿¤¤¾ì¹ç:
113 .IP
114 watch echo $$
115 .IP
116 watch echo '$$'
117 .IP
118 watch echo "'"'$$'"'"
119 .PP
120 .\"O You can watch for your administrator to install the latest kernel with
121 ´ÉÍý¼Ô¤Ë¤è¤ëºÇ¿·¤Î¥«¡¼¥Í¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ë¾õ¶·¤ò´Æ»ë¤¹¤ë:
122 .IP
123 watch uname -r
124 .PP
125 .\"O (Just kidding.)
126 (¤¿¤À¤Î¾éÃ̤Ǥ¹)
127 .\"O .SH BUGS
128 .SH ¥Ð¥°
129 .\"O Upon terminal resize, the screen will not be correctly repainted until the
130 .\"O next scheduled update.  All
131 .\"O .I --differences
132 .\"O highlighting is lost on that update as well.
133 üËö¤Î¥ê¥µ¥¤¥º»þ¤Ë¡¢¥¹¥¯¥ê¡¼¥ó¤ÏÀµ¤·¤¯ºÆÉÁ²è¤µ¤ì¤Ê¤¤¡£
134 ¼¡¤Î¹¹¿·¥¹¥±¥¸¥å¡¼¥ë¤òÂÔ¤¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
135 .I --differences
136 ¤Ë¤è¤ë¥Ï¥¤¥é¥¤¥Èɽ¼¨¤Ï¡¢¤½¤Î¹¹¿·¤ÎºÝ¤ËÁ´¤Æ¼º¤ï¤ì¤ë¡£
137 .PP
138 .\"O Non-printing characters are stripped from program output.  Use "cat -v" as
139 .\"O part of the command pipeline if you want to see them.
140 Èó°õ»úʸ»ú¤Ï¥×¥í¥°¥é¥à½ÐÎϤ«¤é¼è¤ê½ü¤«¤ì¤ë¡£
141 ¤³¤ì¤é¤ò¤ß¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É¤Î¥Ñ¥¤¥×¥é¥¤¥ó¤Î¤É¤³¤«¤Ç
142 "cat -v" ¤òÍѤ¤¤ë¤³¤È¡£
143 .\"O .SH AUTHORS
144 .SH Ãø¼Ô
145 .\"O The original
146 .\"O .B watch
147 .\"O was written by Tony Rems <rembo@unisoft.com> in 1991, with mods and
148 .\"O corrections by Francois Pinard.  It was reworked and new features added by
149 .\"O Mike Coleman <mkc@acm.org> in 1999.
150 ¤â¤È¤â¤È¤Î
151 .B watch
152 ¤Ï Tony Rems <rembo@unisoft.com> ¤¬ 1991 ¤Ë½ñ¤¤¤¿¡£
153 Francois Pinard ¤¬½¤Àµ¡¦Êѹ¹¤ò¹Ô¤Ã¤¿¡£
154 Mike Coleman <mkc@acm.org> ¤¬ 1999 ¤Ë½ñ¤­Ä¾¤·¡¢
155 ¿·¤·¤¤µ¡Ç½¤òÄɲä·¤¿¡£