On Wed, Jan 28, 2015 at 04:28:10PM -0600, System Administrator wrote:
> Imagine the following scenario:
> 
> open -u "username1,password1" -p 22 sftp://site1/   <- works
> mput /tmp/site1.*   <- works
> close
> 
> open -u "username2,password2" -p 22 sftp://site2/  -< fails
> mput /tmp/site2.*   <- since the lat open failed, still connects to site
> 1 and upload a file, hence high risk.

You can use one on these:

        set cmd:fail-exit yes
or
        open ... || exit

-- 
   Alexander.
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to