-
ftp Library Package 2.1 for Tcl/Tk Manual Pages
- COMMAND
- ftp::Newer handle remote ?local?
-
-
The ftp::Newer command has the same behavior as ftp::Get, except
that it gets the remote file only if the modification time of
the remote file is more recent that the file on the local
system. If the file does not exist on the current system, the
remote file is considered newer.
If the file was successfully transferred, then the command
returns 1, if it fails 0.
- EXAMPLE
-
# 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]
© 1999 Steffen Traeger