FTP Library Package 1.2 for Tcl/Tk Manual Pages
If the file was successfully transferred, then the command returns 1, if it fails 0.
# package update
if {[FTP::Newer /pub/tcl/httpd/tclhttpd.tar.gz /usr/local/src/tclhttpd.tgz]} {
exec echo "New httpd arrived!" | mailx -s ANNOUNCE root
}
[Contents] [Previous: FTP::Reget] [Next: FTP::MkDir]