: >
: > >
: > >> I am trying to develop an ftp mechanism that will only transfer files
: > >> from a remote host which were created after the latest timestamp from
: > >> files transferred in the previous ftp operation.
: > >
: > ...
: > Most commonly accepted solutions to this general problem assume correct
: > time being in use on all of the involved machines. This isn't the case in
: > this situation, so I doubt they (any of the commonly accepted solutions)
: > will work.
: > ...
: > >The solution for this is to keep its clock correct. NTP is usually
: > >used for this purpose. http://www.ntp.org
:
: Couldn't you ue ntp to figure out what time the remote machine _thinks_
: it is, then use some local calculations to get what you want?
:
Again: The new Kermit ftp client:
http://www.columbia.edu/kermit/ftpclient.html
takes care of all this for you. A detailed description of the precise
mechanism for update mode when uploading is given here:
http://www.columbia.edu/kermit/ckermit3.html#x3.5.2
It also applies to downloading, but in the reverse direction. Bear in mind
that the server reports a file's time in GMT (UTC), but you don't know what
time zone the server is in. When downloading, you can have Kermit give the
downloaded file the current time, or the time from the server -- your choice
(in UNIX, which uses GMT/UTC internally anyway, this is just what you want).
If you use the latter method, e.g.:
get /update *
then only the files that are newer than those already downloaded will be
downloaded again.
- Frank