summaryrefslogtreecommitdiffstats
path: root/tcllib/modules/ftp/docs/fhelp12.html
blob: f517e65909da5e423b2f939c220bcfb5a4811e36 (plain)
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
58
<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::Put</b><em>&nbsp; handle&nbsp; (local | -data "data") &nbsp;?remote?</em></dd>
    <dd>&nbsp;</dd>
    <dd>

	The <b>ftp::Put</b> command stores a local file <em>local</em> to a remote
	file <em>remote</em> on the ftp server. The file parameters passed must
	contain a fully qualified path name, otherwise the command uses
	the current directory. If '-data "data"' is specified, then rather than
        transferring a file, the data passed in is used as the data to transfer.
        If remote file name is unspecified, the local file name is assigned to
	the remote file name.
		
	<p>If the file was successfully transferred, then the command
	returns 1, if it fails 0. </p>

    </dd>
  </dl></dd>

  <dd><font face="Arial,Helvetica" size="+1"><b>EXAMPLE</b></font></dd>
  <dd><dl>
    <dd>
	<pre># store unique file name
ftp::Put $conn index.htm

# store different file names
ftp::Put $conn test.htm index.htm

# with different fully qualified path name
ftp::Put $conn /usr/local/src/my.tar.gz /incoming/foo.tar.gz
	</pre>
		
    </dd> 
  </dl></dd> 
</dl>
</p>
<p>
[<a href="index.html">Contents</a>]&nbsp;
[<b>Previous:</b> <a href="fhelp11.html">ftp::Rename</a>]&nbsp;
[<b>Next:</b> <a href="fhelp125.html">ftp::Append</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>