Hello...
 
First off, thanks for the application. It's very, very good.
 
I'm using lftp on RedHat ES3.0 but have installed the latest rpm (which they are
not on) and can still re-create a possible problem.
 
When I use this line in an lftp script:
 
mirror -r -N lastfile ./outgoing ..
 
where "lastfile" was created via
 
Lastfile=`ls -tr -1 | tail -1`;
cp -f -p $Lastfile lastfile > /dev/null
 
from within a ksh shell (basically, it preserves the file timestamp from the 
newest file in the
directory). The files in the dir are exactly as they were "delivered" by lftp 
(Lastfile is determined 
after the lftp xfer from an ftp site).
 
However, if I then remove all the files in the directory (except for 
"lastfile") from my server and run the 
pull job again, $Lastfile is once again transferred from the ftp site to my 
server. But, the lftp documentation 
states for mirror:
 
 
"-N, --newer-than=SPEC    download only files newer than specified time"

and
 
"For option --newer-than you can either  specify  a  file  or
 time  specification  like  that  used by at(1) command, e.g.
 `now-7days' or `week ago'. If you specify a file, then 
  modification time of that file will be used."
 
 
But, it appears it's doing "equal to and newer than a specified time".
 
This is causing the same file (which matches the timestamp) to be xfered more 
than once 
despite my use of a file sentinel which preserves the file timestamp.
 
I hope I have explained the problem in enough detail for you to understand.
 
HELP!!! {please :>}
 
Michael Leib
 
 
 
 
 
  


       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Reply via email to