Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lftp -u user,pass(word
Date: Tue, 05 Apr 2016 18:09:43
Message-Id: 2060950.47PH9WsnKc@dell_xps
In Reply to: Re: [gentoo-user] lftp -u user,pass(word by hw
1 On Tuesday 05 Apr 2016 20:06:08 hw wrote:
2 > Neil Bothwick schrieb:
3 > > On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote:
4 > >> how do you use lftp (to mirror a remote site)
5 > >> when the password you have contains a bracket?
6 > >>
7 > >> I'm trying 'lftp -u user,pass(word ftp.example.com', and
8 > >> there appears to be no way to escape characters in the
9 > >> password. Using single quotes also doesn't work, same
10 > >> as 'lftp 'ftp://user:pass(word@×××××××.com'.
11 > >
12 > > Try lftp 'ftp://user:pass\(word@×××××××.com'
13 > > or lftp ftp://user:pass\\\(word@×××××××.com
14 > >
15 > > The \ escapes the ( and the single quotes protect it fro the shell. In
16 > > the second way, you escape the \ as well.
17 >
18 > That's what I thought :) I already tried and it didn't
19 > work.
20
21 Did you try putting single/double quotes around passwd only?
22
23 --
24 Regards,
25 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] lftp -u user,pass(word hw <hw@×××××.de>