Alexander V. Lukyanov
Mon, 16 Nov 2009 08:48:10 -0800
On Fri, Nov 13, 2009 at 10:28:29PM +0100, Enrico Mioso (@atlantide) wrote: > Something strange in lftp! > Noticeable with the following command: > > repeat -d 10s ls > > When lftp is not connected and ls returns immediately, the command is > called a little too mucn on my system immediately.
I cannot reproduce it - it delays for 10 seconds as intended.
You can add an option to break the loop on failure condition:
repeat -d 10s --while-ok ls
Note that ls prints from the cache by default, so probably you wanted rels.
--
Alexander.