[Ttssh2-commit] [4801] サンプルマクロを追加した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2012年 1月 22日 (日) 18:44:59 JST


Revision: 4801
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4801
Author:   yutakapon
Date:     2012-01-22 18:44:59 +0900 (Sun, 22 Jan 2012)
Log Message:
-----------
サンプルマクロを追加した。
cf.
http://www.j-oosk.com/teraterm/file-transfer/601/

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

-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/scpsend.html
===================================================================
--- trunk/doc/en/html/macro/command/scpsend.html	2012-01-21 14:15:29 UTC (rev 4800)
+++ trunk/doc/en/html/macro/command/scpsend.html	2012-01-22 09:44:59 UTC (rev 4801)
@@ -38,5 +38,26 @@
 scpsend 'C:\usr\cvs\doc\en\teraterm.chm' 'tmp/foo.chm'
 </pre>
 
+<pre class="macro-example">
+; Confirm finishing a file sending.
+SOURFILE = 'C:\usr\ttssh2\doc\en\teraterm.chm'
+DESTFILE = '~'
+
+;; Send a file.
+scpsend SOURFILE DESTFILE
+;; Confirm a scp process.
+do
+  mpause 5000
+  sprintf2 str 'ps -ef |grep -v grep |grep -c scp'
+  sendln str
+  waitln '0' '1'
+loop while result != 1
+;; Do next macro after finishing the file sending.
+sendln 'echo SCP finish'
+;; Exit this macro script.
+end
+</pre>
+
+
 </body>
 </html>

Modified: trunk/doc/ja/html/macro/command/scpsend.html
===================================================================
--- trunk/doc/ja/html/macro/command/scpsend.html	2012-01-21 14:15:29 UTC (rev 4800)
+++ trunk/doc/ja/html/macro/command/scpsend.html	2012-01-22 09:44:59 UTC (rev 4801)
@@ -38,5 +38,26 @@
 scpsend 'C:\usr\cvs\doc\en\teraterm.chm' 'tmp/foo.chm'
 </pre>
 
+<pre class="macro-example">
+; \x83t\x83@\x83C\x83\x8B\x91\x97\x90M\x8A\xAE\x97\xB9\x82\xF0\x8Am\x94F\x82\xB7\x82\xE9
+SOURFILE = 'C:\usr\ttssh2\doc\en\teraterm.chm'
+DESTFILE = '~'
+
+;; \x83t\x83@\x83C\x83\x8B\x91\x97\x90M
+scpsend SOURFILE DESTFILE
+;; \x83t\x83@\x83C\x83\x8B\x91\x97\x90M\x83v\x83\x8D\x83Z\x83X\x8Am\x94F
+do
+  mpause 5000
+  sprintf2 str 'ps -ef |grep -v grep |grep -c scp'
+  sendln str
+  waitln '0' '1'
+loop while result != 1
+;; \x83t\x83@\x83C\x83\x8B\x91\x97\x90M\x82\xAA\x8A\xAE\x97\xB9\x82\xB7\x82\xE9\x82Ǝ\x9F\x82̃}\x83N\x83\x8D\x82\xF0\x8E\xC0\x8Ds
+sendln 'echo SCP finish'
+;; \x83}\x83N\x83\x8D\x8FI\x97\xB9
+end
+</pre>
+
+
 </body>
 </html>



Ttssh2-commit メーリングリストの案内
Back to archive index