[Ttssh2-commit] [5009] サンプルコードの誤りを修正した。

svnno****@sourc***** svnno****@sourc*****
2012年 8月 29日 (水) 23:15:54 JST


Revision: 5009
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5009
Author:   yutakapon
Date:     2012-08-29 23:15:54 +0900 (Wed, 29 Aug 2012)
Log Message:
-----------
サンプルコードの誤りを修正した。
mwaitは存在せず、mtimeoutの間違いと思われる。

Modified Paths:
--------------
    trunk/doc/en/html/macro/command/wait.html
    trunk/doc/ja/html/macro/command/wait.html

-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/wait.html
===================================================================
--- trunk/doc/en/html/macro/command/wait.html	2012-08-29 13:33:30 UTC (rev 5008)
+++ trunk/doc/en/html/macro/command/wait.html	2012-08-29 14:15:54 UTC (rev 5009)
@@ -64,7 +64,7 @@
 ; The timeout limit is 30 sec.
 timeout = 30
 
-Wait 'OK' 'ERROR'
+wait 'OK' 'ERROR'
 ; If timeout occurs, go to ":timeout".
 if result=0 goto timeout
 ; has received, go to ":error".
@@ -75,9 +75,10 @@
 ; Wait a line beginning with the ">" or a line ending with the "complete.". (ASCII code of LF is 10, and CR is 13.)
 wait #10'>' 'complete.'#13
 
-; The timeout limit is 30 msec.
-timeout = 100
-mwait 'server response'
+; The timeout limit is 100 msec.
+timeout = 0
+mtimeout = 100
+wait 'server response'
 </pre>
 
 <pre class="macro-example">

Modified: trunk/doc/ja/html/macro/command/wait.html
===================================================================
--- trunk/doc/ja/html/macro/command/wait.html	2012-08-29 13:33:30 UTC (rev 5008)
+++ trunk/doc/ja/html/macro/command/wait.html	2012-08-29 14:15:54 UTC (rev 5009)
@@ -65,7 +65,7 @@
 timeout = 30
 
 ; \x95\xB6\x8E\x9A\x97\xF1 "OK" \x82\xA9 "ERROR" \x82\xF0\x91҂B
-Wait 'OK' 'ERROR'
+wait 'OK' 'ERROR'
 ; \x83^\x83C\x83\x80\x83A\x83E\x83g\x82Ȃ\xE7\x81A:timeout \x82փW\x83\x83\x83\x93\x83v\x81B
 if result=0 goto timeout
 ; "OK" \x82\xAA\x97\x88\x82\xBD\x82Ȃ\xE7\x81A:ok \x82փW\x83\x83\x83\x93\x83v
@@ -77,8 +77,9 @@
 wait #10'&gt;' 'complete.'#13
 
 ; \x83^\x83C\x83\x80\x83A\x83E\x83g\x82\xF0100\x83~\x83\x8A\x95b\x82ɐݒ\xE8\x81B
-timeout = 100
-mwait 'server response'
+timeout = 0
+mtimeout = 100
+wait 'server response'
 </pre>
 
 <pre class="macro-example">



Ttssh2-commit メーリングリストの案内