1 |
On April 5, 2016 8:06:08 PM GMT+02:00, hw <hw@×××××.de> wrote: |
2 |
>Neil Bothwick schrieb: |
3 |
>> On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote: |
4 |
>> |
5 |
>>> how do you use lftp (to mirror a remote site) |
6 |
>>> when the password you have contains a bracket? |
7 |
>>> |
8 |
>>> I'm trying 'lftp -u user,pass(word ftp.example.com', and |
9 |
>>> there appears to be no way to escape characters in the |
10 |
>>> password. Using single quotes also doesn't work, same |
11 |
>>> as 'lftp 'ftp://user:pass(word@×××××××.com'. |
12 |
>> |
13 |
>> Try lftp 'ftp://user:pass\(word@×××××××.com' |
14 |
>> or lftp ftp://user:pass\\\(word@×××××××.com |
15 |
>> |
16 |
>> The \ escapes the ( and the single quotes protect it fro the shell. |
17 |
>In |
18 |
>> the second way, you escape the \ as well. |
19 |
> |
20 |
>That's what I thought :) I already tried and it didn't |
21 |
>work. |
22 |
|
23 |
Have you tried: |
24 |
lftp -u "user,pass(word" ftp.example.com |
25 |
? |
26 |
|
27 |
Maybe that works. |
28 |
|
29 |
-- |
30 |
Joost |
31 |
-- |
32 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |