Tera Term のローカルエコー (local echo) の状態を変更する。. 現在の Tera Term ウインドウと MACRO の間のリンクを断つ。. ![]() Line formats Line formats There are four kinds of line formats for macro files. Any line can contain a comment which begins with a ';' character. Also, a user can use the C language style comment(/* - */). Comments give no effect on the execution of MACRO. One line can contain up to 1023 characters. Driven by action, blood and ungodly sarcasm; rated M for language & sexy scenes. Serial port component for lazarus pit batman 3. The part that exceeded 1023 characters is ignored. 1) Empty lines Lines which have no character or contain only space or tab characters or a comment. They give no effect on the execution of the macro. Example:; Tera Term Language Example: showtt 0 MessageBox 'message 1' 'title 1' /* This is 'comment' 'string' */ MessageBox 'message 2' 'title 2' closett 2) Command lines Lines containing a single command with parameters. Example: connect 'myhost' wait 'OK' 'ERROR' if result=2 goto error sendln 'cat' pause A*10 end 3) Assignment lines Lines which contain an assignment statement. Format: = Example: A = 33 B = C C must already have a value. VAL = I*(I+1) A=B=C The value of B=C (0 for false, 1 for true) is assigned to A. Error=0 Example::dial:100. Scpsend scpsend Sends a file from the host with the SCP protocol. Scpsend [] Remarks Causes Tera Term to send the file to the host with the SCP(Secure Copy Protocol) protocol. If the file is omitted, the file would be copied in the home directory of the remote host. ![]() Tera Term does not pause until the end of the file transfer. Example connect '192.168.3.2:22 /ssh /2 /auth=password /user=hoge /passwd=fuga' wait '$' scpsend 'C: usr cvs doc en teraterm.chm' scpsend 'C: usr cvs doc en teraterm.chm' 'tmp/foo.chm'; 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.
0 Comments
Leave a Reply. |