lftp reconnects as needed, so you don't have to keep those connections open all the times.
If the connections are anonymous, you can just do: mirror URL1 URL2 If a login/password is required, you have to login first so that lftp remembers the password. Them you can use the URL without a password. login ftps://user@host mirror ftps://user@host URL2 You can also use bookmarks to remember those URLs and refer to them by name: bookmark add site1 URL1 bookmark add site2 URL2 mirror bm:site1 bm:site2 2013/5/6 Hernan Lopes <hernanlo...@gmail.com> > Could you give an example? > > My intent is to connect to many ftps.. and leave them open/idling > connected, and i will keep sending those commands to transfer dirs from > some source into some destiny > > > On Mon, May 6, 2013 at 10:17 AM, Alexander Lukyanov <lavv...@gmail.com>wrote: > >> Use "&&" or "set fail-exit yes". >> >> BTW, mirror automatically creates the target directory and you can >> specify target URL directly without any slots. >> >> -- >> Alexander. >> >> 2013/5/6 Hernan Lopes <hernanlo...@gmail.com> >> >>> slot FTPDESTINY; mkdir /some/other/dirs/This-Dir-Destiny; cd >>> /some/other/dirs/This-Dir-Destiny; >>> >>> Then, FTPDESTINY was busy and conclusion: none of those commands were >>> executed and i am at directory /the/wrong/directory/ >>> >>> And then comes the next command which is: >>> >>> slot FTPSOURCE; mirror /some/dirs/This-Dir-Source slot:FTPDESTINY >>> >>> And BAAAM, its going to mirror into /the/wrong/directory/ >>> >>> So to solve this, i think the whole tihng should be passed all together >>> within one command so either the whole thing works or none of it... at >>> least it will always act correctly. >>> >> >
_______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp