1 |
Mick schrieb: |
2 |
> On Tuesday 05 Apr 2016 20:06:08 hw wrote: |
3 |
>> Neil Bothwick schrieb: |
4 |
>>> On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote: |
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. In |
17 |
>>> the second way, you escape the \ as well. |
18 |
>> |
19 |
>> That's what I thought :) I already tried and it didn't |
20 |
>> work. |
21 |
> |
22 |
> Did you try putting single/double quotes around passwd only? |
23 |
> |
24 |
|
25 |
Yes, that didn't work, either. |