1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<html>
<head>
<title>ftp Library Package 2.1 for Tcl/Tk help file</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<body>
<p>
<dl>
<dd>
<p><font face="Arial,Helvetica" color="#526e9c" size="+2"><b>ftp Library Package 2.1 for Tcl/Tk Manual Pages</b></font></p>
</dd>
<dd><font face="Arial,Helvetica" size="+1"><b>COMMAND</b></font></dd>
<dd><dl>
<dd><b>ftp::Newer</b><em> handle remote ?local?</em></dd>
<dd> </dd>
<dd>
The <b>ftp::Newer</b> command has the same behavior as <b>ftp::Get</b>, 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.
<p>If the file was successfully transferred, then the command
returns 1, if it fails 0. </p>
</dd>
</dl></dd>
<dd><font face="Arial,Helvetica" size="+1"><b>EXAMPLE</b></font></dd>
<dd><dl>
<dd>
<pre># 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
}
</pre>
</dd>
</dl></dd>
</dl>
</p>
<p>
[<a href="index.html">Contents</a>]
[<b>Previous:</b> <a href="fhelp13.html">ftp::Get</a>]
[<b>Next:</b> <a href="fhelp15.html">ftp::Newer</a>]
</p>
<p align="left"><hr noshade size="1"><font face="Arial,Helvetica" size="-1">© 1999 <a href="mailto:Steffen.Traeger@t-online.de">Steffen Traeger</a></font></p>
</body>
</html>
|