File: fhelp2.html

package info (click to toggle)
tcllib 1.20%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 68,064 kB
  • sloc: tcl: 216,842; ansic: 14,250; sh: 2,846; xml: 1,766; yacc: 1,145; pascal: 881; makefile: 107; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (57 lines) | stat: -rw-r--r-- 1,426 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<title>ftp Library Package 2.1 for Tcl/Tk help file</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<body>

<p>
<dl>
  <dd>
    <p><font face="Arial,Helvetica" color="#526e9c" size="+2"><b>ftp Library Package 2.1 for Tcl/Tk Manual Pages</b></font></p>
  </dd>

  <dd><font face="Arial,Helvetica" size="+1"><b>COMMAND</b></font></dd>
  <dd><dl>  
    <dd><b>ftp::Close</b> <em>handle</em></dd>
    <dd>&nbsp;</dd>
    <dd>
       	The <b>ftp::Close</b> command terminates the ftp session and if file
	transfer is not in progress, the server closes the control
	connection.  If file transfer is in progress, the connection
	will remain open for result response and the server will then
	close it.
    </dd>
    <dd>&nbsp;</dd>
  </dl></dd>

  <dd><font face="Arial,Helvetica" size="+1"><b>EXAMPLE</b></font></dd>
  <dd><dl>
    <dd>
	<pre># open a new connection
if {[set conn [ftp::Open ...]] == -1} {
	puts "Connection refused!"
	exit 1
}

# get file
ftp::Get $conn index.html

# close connection
ftp::Close $conn
	</pre>
		
    </dd> 
  </dl></dd> 

</dl>
</p>

<p>
[<a href="index.html">Contents</a>]&nbsp;
[<b>Previous:</b> <a href="fhelp1.html">ftp::Open</a>]&nbsp;
[<b>Next:</b> <a href="fhelp3.html">ftp::Cd</a>]
</p>
<p align="left"><hr noshade size="1"><font face="Arial,Helvetica" size="-1">&copy; 1999 <a href="mailto:Steffen.Traeger@t-online.de">Steffen Traeger</a></font></p>
</body>
</html>