FTP Library Package 1.1 for Tcl/Tk Manual Pages
If the file was successfully transferred, then the command returns 1, if it fails 0.
# retrieve unique file name
FTP::Get index.htm
# retrieve different file names
FTP::Get index.htm new.htm
# with different fully qualified path name
if [FTP::Get /incoming/foo.tar.gz /usr/local/src] {
cd /usr/local/src
exec gunzip foo.tar.gz
exec tar xf foo.tar
}
[Contents] [Previous: FTP::Append] [Next: FTP::Reget]