Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/testlink.html
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 1 month ago)
by maya
File MIME type: text/html
File size: 1468 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
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>testlink</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>testlink</h1> |
15 |
|
16 |
<p> |
17 |
Reports the current link and connection status. |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
testlink |
22 |
</pre> |
23 |
|
24 |
<h2>Remarks</h2> |
25 |
|
26 |
<p> |
27 |
The system variable "result" is set to one of the following values depending on the link and connection status: |
28 |
</p> |
29 |
|
30 |
<table> |
31 |
<tr> |
32 |
<th>Value</th> |
33 |
<th>Status</th> |
34 |
</tr> |
35 |
<tr> |
36 |
<td>0</td> |
37 |
<td>Link to Tera Term has not been made.</td> |
38 |
</tr> |
39 |
<tr> |
40 |
<td>1</td> |
41 |
<td>Connection to the host has not been made, but link to Tera Term has been made.</td> |
42 |
</tr> |
43 |
<tr> |
44 |
<td>2</td> |
45 |
<td>Both connection and link have been made.</td> |
46 |
</tr> |
47 |
</table> |
48 |
|
49 |
<h2>Example</h2> |
50 |
|
51 |
<pre class="macro-example"> |
52 |
; If MACRO is not linked to Tera Term, |
53 |
testlink |
54 |
; execute the connect command. |
55 |
if result=0 connect 'host' |
56 |
</pre> |
57 |
|
58 |
<h2>See also</h2> |
59 |
|
60 |
<ul> |
61 |
<li>"<a href="closett.html">closett</a>"</li> |
62 |
<li>"<a href="connect.html">connect</a>"</li> |
63 |
<li>"<a href="cygconnect.html">cygconnect</a>"</li> |
64 |
<li>"<a href="disconnect.html">disconnect</a>"</li> |
65 |
<li>"<a href="unlink.html">unlink</a>"</li> |
66 |
</ul> |
67 |
|
68 |
</body> |
69 |
</html> |
|