View Full Version : [all variants] Threaded command line FTP

February 20th, 2010, 03:43 AM
Does anyone know of a CLI program that can thread sending files to an ftp server?

For example:

ftp -i <whateverserver>
mput *
(10 get sent at once instead of one at a time)

Thanks for the help.

February 20th, 2010, 05:08 AM
If you just want to be able to send them one by one, you could use a simple shell script like this:

for i in 'ls'
ftp -i ....
mput $i

February 20th, 2010, 06:49 AM
Threading is the wrong term for this. A limitation of FTP is that only one transfer can take place over a given client/server connection. To transfer 10 files at once, you would need 10 FTP connections -- something that the server may not allow. If you have shell access to the remote, perhaps you could tarball the files and decompress them on the other side.