[lftp] General question

2015-02-24 Thread Michal Wiczynski
Hi,

I am sending this email since I don't wan't to raise a question as an issue
on the github.

My question is if it's possible to download just one file, but using
mirror. For example I would like to download oldest file from the server
without earlier knowing its name and disconnect?
I tried different methods but nothing seems to be working :(

Regards,
Michael.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] General question

2015-02-24 Thread Michal W.
Yup already using second example :). Thank you!

Awesome app!

 On 11 Feb 2015, at 06:06, Alexander V. Lukyanov l...@netis.ru wrote:
 
 On Tue, Feb 10, 2015 at 08:42:07PM +, Michal Wiczynski wrote:
 My question is if it's possible to download just one file, but using
 mirror.
 
 You can mirror a single file by name (see mirror -f option).
 
 For example I would like to download oldest file from the server
 without earlier knowing its name and disconnect?
 
 You have to find the name of that file first. E.g.:
 
cls --sort=date -rF | grep -v '/$' | head -1  tmp-file
source -e echo mirror -f `tmp-file`
!rm -f tmp-file
 
 -- 
   Alexander.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] General question

2015-02-10 Thread Alexander V. Lukyanov
On Tue, Feb 10, 2015 at 08:42:07PM +, Michal Wiczynski wrote:
 My question is if it's possible to download just one file, but using
 mirror.

You can mirror a single file by name (see mirror -f option).

 For example I would like to download oldest file from the server
 without earlier knowing its name and disconnect?

You have to find the name of that file first. E.g.:

cls --sort=date -rF | grep -v '/$' | head -1  tmp-file
source -e echo mirror -f `tmp-file`
!rm -f tmp-file

-- 
   Alexander.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp