Hallo,
I've used lftp (2.3.7) to connect to a heavily used ftp-server with
limited user-slots (connections). When at last I got access, I
downloaded some files. Because this server is not the fastest, I queued
some requests:
> queue wait 1 <-- active job
> queue mget -c backup75*.tar.gz
> queue mget -c backup78*.tar.gz
But I relized, that after 'mget -c backup75*.tar.gz' the connection was
dropped and a new one was made to this server for 'mget -c
backup78*.tar.gz'. Bad luck for me. An other user have already occupied
this slot for next two hours... :(
Is there a way, so lftp reuses already existing connections to servers?
This would speed-up some thing a lot.
Anathor question: I want to run two simultaneous during the whole (slow)
session, but how manage this with the queue?
An example:
> mget -c blabla1*.tar.gz & <--- starts job 1
> mget -c blabla2*.tar.gz & <--- starts job 2
And now?
> queue wait 1 <-- or 2? I cannot guess (at runtime), which job
would be ready at first.
> queue mget -c blabla3*.tar.gz
> queue mget -c blabla4*.tar.gz
Let us say, job 1 ist faster than 2. So after job 1 has finished, there
are two running commands: 'mget -c blabla2*.tar.gz' (job 2) and 'mget -c
blabla3*.tar.gz' (from queue). Let's say, some seconds later job 2
finish, but 'mget -c blabla4*.tar.gz' doesn't start because it's waiting
for 'mget -c blabla3*.tar.gz'.
Is there a way to manage this?