Thank you, this works close && open ""
May I suggest as a future enhancement to add an option to the close command to actually do a disconnect, ie invalidate the last open ? Regards. On 1/29/2015 12:41 AM, Alexander V. Lukyanov wrote: > On Wed, Jan 28, 2015 at 02:52:48PM -0600, System Administrator wrote: >> I'm having an issue understanding the effect of the command *close*, as >> it seems different than a disconnect. >> >> With lftp 4.6.1: >> >> open -u "username,password" -p 22 sftp://hostname/ >> ls <- returns a listing >> close >> ls <- still connects and returns the listing ! I expected this to fail. > It's correct behaviour. "close" command closes connections to the server, > but the server is still selected for communication. To undo an open command, > use: > open "" > _______________________________________________ lftp mailing list lftp@uniyar.ac.ru http://univ.uniyar.ac.ru/mailman/listinfo/lftp