Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/logpause.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1034 - (show annotations) (download) (as text)
Tue Oct 21 00:30:15 2008 UTC (4 years, 7 months ago) by maya
Original Path: doc/trunk/en/html/macro/command/logpause.html
File MIME type: text/html
File size: 1217 byte(s)
macro-example の中にある code を削除した。
1 <!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=iso-8859-1">
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 Causes Tera Term to pause logging.
18 </p>
19
20 <pre class="macro-syntax">
21 logpause
22 </pre>
23
24 <h2>Remarks</h2>
25
26 <p>
27 Received characters are discarded while logging is paused.
28 </p>
29
30 <h2>Example</h2>
31
32 <pre class="macro-example">
33 prompt = '$'
34
35 cygconnect
36 wait prompt
37
38 ; get a user name
39 getenv 'USERNAME' username
40 ; get the date and time
41 gettime timestr "%Y%m%d-%H%M%S"
42
43 ; add the user name and the timestamp to the log file name
44 sprintf 'd:\console_%s_%s.log' username timestr
45 filename = inputstr
46 ;messagebox filename 'filename'
47
48 logopen filename 0 0
49 logwrite 'Log start'#13#10
50 sendln 'cal'
51 wait prompt
52 ; Suspend logging
53 logpause
54 ; The below command is not logging
55 sendln 'date'
56 wait prompt
57 ; Resume logging
58 logstart
59 sendln 'uptime'
60 wait prompt
61 logwrite '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'#13#10
62 logclose
63
64 exit
65 </pre>
66
67 </body>
68 </html>

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.