lftpget $(< new_filenames_from_ftp)
-bash: /usr/bin/lftpget: /bin/sh: bad interpreter: Argument list too long

echo "[`date +%m/%d/%Y\ %T`] - Downloading new files from FTP"
for newfile in `cat new_filenames_from_ftp`; do
  lftpget ftp://<user>:<pass>@<host>/$newfile;
done

This second one just returns a small amount of the files and a bunch of 'not connected' messages.

Daniel Fazekas wrote:


On Sep 7, 2005, at 18:16, Ken Garland wrote:

I have seen this asked a few times in the list, but I was unable to locate an answer or even a reply. What I would like to do is download a list of files contained in a text file using lftp.


Try
lftpget $(< listfile)


Reply via email to