On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote:

> how do you use lftp (to mirror a remote site)
> when the password you have contains a bracket?
> 
> I'm trying 'lftp -u user,pass(word ftp.example.com', and
> there appears to be no way to escape characters in the
> password.  Using single quotes also doesn't work, same
> as 'lftp 'ftp://user:pass([email protected]'.

Try lftp 'ftp://user:pass\([email protected]'
or  lftp ftp://user:pass\\\([email protected]

The \ escapes the ( and the single quotes protect it fro the shell. In
the second way, you escape the \ as well.


-- 
Neil Bothwick

In plumbing, a straight flush is better than a full house.

Attachment: pgpyVNf5dOIzg.pgp
Description: OpenPGP digital signature

Reply via email to