Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Annotation of /trunk/doc/jp/html/macro/command/logpause.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3227 - (hide annotations) (download) (as text)
Tue Mar 24 15:10:33 2009 UTC (15 years, 2 months ago) by maya
File MIME type: text/html
File size: 1226 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 maya 3227 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2     "http://www.w3.org/TR/html4/strict.dtd">
3     <html>
4     <head>
5     <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
6     <title>logpause</title>
7     <meta http-equiv="Content-Style-Type" content="text/css">
8     <link rel="stylesheet" href="../../style.css" type="text/css">
9     </head>
10    
11     <body>
12    
13    
14     <h1>logpause</h1>
15    
16     <p>
17     Tera Term のログを一時中断する。
18     </p>
19    
20     <pre class="macro-syntax">
21     logpause
22     </pre>
23    
24     <h2>解説</h2>
25    
26     <p>
27     中断している間に受信された文字はログファイルに書き込まれない。
28     </p>
29    
30     <h2></h2>
31    
32     <pre class="macro-example">
33     prompt = '$'
34    
35     cygconnect
36     wait prompt
37    
38     ; ユーザ名を取得
39     getenv 'USERNAME' username
40     ; 日時を取得
41     gettime timestr "%Y%m%d-%H%M%S"
42    
43     ; ログファイル名に日時とユーザ名を入れる。
44     sprintf2 filename 'd:\console_%s_%s.log' username timestr
45     ;messagebox filename 'filename'
46    
47     logopen filename 0 0
48     logwrite 'Log start'#13#10
49     sendln 'cal'
50     wait prompt
51     ; ログ停止
52     logpause
53     ; 以下のコマンドはログ採取されない
54     sendln 'date'
55     wait prompt
56     ; ログ再開
57     logstart
58     sendln 'uptime'
59     wait prompt
60     logwrite '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'#13#10
61     logclose
62    
63     exit
64     </pre>
65    
66     </body>
67     </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26