ftp Library Package 2.1 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 $conn /pub/tcl/httpd/tclhttpd.tar.gz /usr/local/src/tclhttpd.tgz]} {
exec echo "New httpd arrived!" | mailx -s ANNOUNCE root
}
[Contents] [Previous: ftp::Get] [Next: ftp::Newer]