On Sun, Nov 20, 2011 at 04:57:38PM -0600, George Neill wrote:
> Hi folks,
> 
> I am trying to grab a file from a ftp site without landing it to disk ...
> 
> lftp -e 'set net:timeout 10; set cmd:verbose false; cat a_dir/a_file.txt;
> bye' a_host  > myfile.txt
> 
> However, I seem to be getting, "xxxxx bytes transferred" at the end of my
> file. Am I using this wrong, or is there a way to make this either write to
> stderr, or disable it?

Use redirection _inside_ of lftp:
        lftp -e 'cat a_dir/a_file.txt > myfile.txt; bye' a_host

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

Reply via email to