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>
7 .TH WATCH 1 "1999 Apr 3" " " "Linux User's Manual"
9 .\"O watch \- execute a program periodically, showing output fullscreen
11 watch \- ¥×¥í¥°¥é¥à¤òÄê´üŪ¤Ë¼Â¹Ô¤·¡¢½ÐÎϤò¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¤Çɽ¼¨¤¹¤ë
15 .I [\-dhvt] [\-n <seconds>] [\-\-differences[=cumulative]] [\-\-help] [\-\-interval=<seconds>] [\-\-no\-title] [\-\-version] <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
27 .\"O to specify a different interval.
31 ¤ò·«¤êÊÖ¤·¼Â¹Ô¤·¡¢¤½¤Î½ÐÎϤòɽ¼¨¤¹¤ë (°ì²èÌ̤˼ý¤Þ¤ë°ìÇÕ¤Þ¤Ç)¡£
33 ¤òÍѤ¤¤ë¤È¡¢¥×¥í¥°¥é¥à¤Î½ÐÎϤηлþÊѲ½¤ò´Æ»ë¤Ç¤¤ë¡£
34 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥×¥í¥°¥é¥à¤Ï 2 É䪤¤Ëµ¯Æ°¤µ¤ì¤ë¡£
35 »þ´Ö¤Î´Ö³Ö¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢
36 .IR -n " ¤Þ¤¿¤Ï " --interval
43 .\"O flag will highlight the differences between successive updates. The
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 Á°²ó¤È°Û¤Ê¤Ã¤Æ¤¤¤ëÉôʬ¤ò¥Ï¥¤¥é¥¤¥Èɽ¼¨¤¹¤ë¡£
51 ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ë¤È¡¢¥Ï¥¤¥é¥¤¥È¤¬ "sticky" ¤Ë¤Ê¤ë¡£
53 ¼Â¹Ô¤¬³«»Ï¤µ¤ì¤Æ¤«¤éÊѹ¹¤¬¤¢¤Ã¤¿Á´¤Æ¤ÎÉôʬ¤ò¥Ï¥¤¥é¥¤¥È¤Çɽ¼¨¤¹¤ë¡£
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 ¤½¤Î¸å¤Î¶õ¹Ô¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£
65 .\"O will run until interrupted.
67 ¤ÏÃæÃǤµ¤ì¤ë¤Þ¤Ç¼Â¹Ô¤ò³¤±¤ë¡£
72 .\"O is given to "sh -c"
73 .\"O which means that you may need to use extra quoting to get the desired effect.
75 ¤Ï "sh -c" ¤ËÍ¿¤¨¤é¤ì¤ë¡£¤·¤¿¤¬¤Ã¤Æ
77 ¤ò˾¤ß¤ÎÄ̤ê¤ËÆ°ºî¤µ¤»¤ë¤Ë¤Ï¡¢¥¯¥©¡¼¥È¤ò;ʬ¤ËÍѤ¤¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
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
82 .\"O don't get interpreted by
85 POSIX ¤Î¥ª¥×¥·¥ç¥ó½èÍý¤¬ÍѤ¤¤é¤ì¤ë
86 (¤Ä¤Þ¤ê¡¢¥ª¥×¥·¥ç¥ó½èÍý¤ÏºÇ½é¤Ë¥ª¥×¥·¥ç¥ó°Ê³°¤Î°ú¿ô¤¬¸½¤ì¤¿»þÅÀ¤Ç½ªÎ»¤¹¤ë)
87 ¤³¤È¤ËÃí°Õ¤·¤ÆÍߤ·¤¤¡£
92 ¤Ë¤è¤Ã¤Æ¤Ï²ò¼á¤µ¤ì¤Ê¤¤¡£
96 .\"O To watch for mail, you might do
101 .\"O To watch the contents of a directory change, you could use
102 ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¿È¤ÎÊѲ½¤ò´Æ»ë¤¹¤ë:
106 .\"O If you're only interested in files owned by user joe, you might use
107 ¥æ¡¼¥¶¡¼ joe ¤Î½êͤ¹¤ë¥Õ¥¡¥¤¥ë¤Î¤ß¤ò´Æ»ë¤¹¤ë:
109 watch \-d 'ls \-l | fgrep joe'
111 .\"O To see the effects of quoting, try these out
112 ¥¯¥©¡¼¥È¤Î¸ú²Ì¤ò¸«¤Æ¤ß¤¿¤¤¾ì¹ç:
118 watch echo "'"'$$'"'"
120 .\"O You can watch for your administrator to install the latest kernel with
121 ´ÉÍý¼Ô¤Ë¤è¤ëºÇ¿·¤Î¥«¡¼¥Í¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ë¾õ¶·¤ò´Æ»ë¤¹¤ë:
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 ¼¡¤Î¹¹¿·¥¹¥±¥¸¥å¡¼¥ë¤òÂÔ¤¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
136 ¤Ë¤è¤ë¥Ï¥¤¥é¥¤¥Èɽ¼¨¤Ï¡¢¤½¤Î¹¹¿·¤ÎºÝ¤ËÁ´¤Æ¼º¤ï¤ì¤ë¡£
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" ¤òÍѤ¤¤ë¤³¤È¡£
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.
152 ¤Ï Tony Rems <rembo@unisoft.com> ¤¬ 1991 ¤Ë½ñ¤¤¤¿¡£
153 Francois Pinard ¤¬½¤Àµ¡¦Êѹ¹¤ò¹Ô¤Ã¤¿¡£
154 Mike Coleman <mkc@acm.org> ¤¬ 1999 ¤Ë½ñ¤Ä¾¤·¡¢
155 ¿·¤·¤¤µ¡Ç½¤òÄɲä·¤¿¡£