Tk Library Source Code

Artifact [1a4368e9f9]
Login

Artifact 1a4368e9f914bc254535761c0ec6f246db9276d6:

Attachment "ftp.man.patch" to ticket [1592656fff] added by bugant 2006-11-09 16:03:42.
Index: ftp.man
===================================================================
RCS file: /cvsroot/tcllib/tcllib/modules/ftp/ftp.man,v
retrieving revision 1.11
diff -u -r1.11 ftp.man
--- ftp.man	23 Oct 2006 19:29:08 -0000	1.11
+++ ftp.man	9 Nov 2006 09:02:19 -0000
@@ -298,7 +298,7 @@
 The command returns 1 if the specified file was successfully renamed
 or 0 if it failed.
 
-[call [cmd ::ftp::Put] [arg handle] ([arg local] | -data [arg data] | -channel [arg chan]) [opt [arg remote]]]
+[call [cmd ::ftp::Put] [arg handle] [opt -temp] ([arg local] | -data [arg data] | -channel [arg chan]) [opt [arg remote]]]
 
 This command transfers a local file [arg local] to a remote file
 
@@ -313,17 +313,26 @@
 
 If [option -data] [arg data] is specified instead of a local file, the
 system will not transfer a file, but the [arg data] passed into it. In
-this case the name of the remote file has to be specified.
+this case if the name of the remote file has not to been specified then
+it will be uniquely named on the server.
 
 [nl]
 
 If [option -channel] [arg chan] is specified instead of a local file,
 the system will not transfer a file, but read the contents of the
-channel [arg chan] and write this to the remote file. In this case the
-name of the remote file has to be specified. After the transfer
+channel [arg chan] and write this to the remote file. In this case if the
+name of the remote file has not to been specified it will be uniquely
+named on the server. After the transfer
 
 [arg chan] will be closed.
 
+[nl]
+
+Using [option -data] or [option -channel] you can also specify the
+[option -temp] option to do a put on the server using the STOT ftp
+command. This could be useful to work with applications (e.g. HylaFax)
+which need to have such a temp file.
+
 [call [cmd ::ftp::Append] [arg handle] ([arg local] | -data [arg data] | -channel [arg chan]) [opt [arg remote]]]
 
 This command behaves like [cmd ::ftp::Puts], but appends the