========================= ftp_lib V1.00 (10.03.98) ========================= 1. Introduction =============== In order to speed up the update of homepage files on the ftp server of my ISP, in spring of 1996 I looked for a useful solution. In those days I worked with Linux and used the Linux inside ftp tool. As fan of Tcl/Tk 'expect' was my next choice. It is excelently suitabled to control interactive processes like ftp sessions. A little bit more Tcl/Tk source and hpupdate 0.1 was ready, a script for the automatical update of homepage files without subdirectories. In the beginning of 1997 I was intense employed with RFC 959. Simultaneous I played with the Tcl socket command. Thus the ftp library for Tcl was developed... 2. Overview =============== The FTP Library Package extends tcl/tk with commands to support the ftp protocol. The library package is 100% tcl code, no extensions, no C stuff. It is easily to include in programs with package require FTP 1.0 Now everybody can write an own ftp program with an own GUI. It works with Windows, UNIX, and also, but not tested on Mac. The ftp_lib makes it comfortable and quick to create small tcl scripts for downloading files or directory trees. Supports the following commands: FTP::Open FTP::Close FTP::Cd FTP::Pwd FTP::Type FTP::List FTP::NList FTP::ModTime FTP::Delete FTP::Rename FTP::Put FTP::Get FTP::Reget FTP::Newer FTP::MkDir FTP::RmDir FTP::Quote ... This new Releases uses the new "fcopy" command to transfer binary data between two channels. There is also a version 0.4 of ftp_lib for tcl7.6/tk4.2, which works stable using the undocumented command "unsupported0" for binary data transfer. 3. Installation =============== If you do not have already installed Tcl/Tk 8.0, at first you must install it. Get it from the known locations and follow the installation instructions. Then type "./installer" in the current directory. This runs a simple installation GUI. The installation program allows you to change the directory of the ftp library. The default directory is "/usr/local/lib" for UN*X and for WIN* the Tcl/Tk distribution directory. There is a small script in the current directory that demonstrates the using of ftp_lib. It's called "ftp_demo". Configure "ftp_demo" with your own ftp-server/username/password entries and run the demo. See the source of the script to understand the using of ftp_lib. See also hpupdate 0.8, a further ftp_lib application. For new releases of ftp_lib have a look at http://home.t-online.de/home/Steffen.Traeger/tindexe.htm