I'm currently using the following wget command to download from an FTP server from a list of URL's in a file:
wget --user=mylogin --password='mypassword' -P /home/ftp/ -i /var/www/file/url.txt -N
But now I need a way to simultaneously download multiple files at the same time. I'm trying to use aria2 for this and I tried the following command:
aria2c -x 5 -i /var/www/file/url.txt
But I can't seem to find a way to get aria2 to login first to the FTP.
So my question is, is there a command for aria2 to login first to the FTP server and then download from the list of URL's?
Alternatively is there a better tool better suited to my task?
Thanks
From
man aria2c
So you can use something like this
Another way may be
gnu parallel
(checkman parallel
for more details):