cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: An issue about sftp quote command

From: Lisa Xu <lisa_xu_at_huatek.com>
Date: Fri, 20 Feb 2009 17:10:59 +0800

I see. Thanks!

On 2/20/09, Lisa Xu <lisa_xu_at_huatek.com> wrote:
>
> Does --quote option support "~" character for sftp?
>
> I use "curl -v -u user:password sftp://192.168.129.61/~/ --quote "-rm
> /home/myuser/abc/test.txt" to remove test.txt, it's fine.
>
> But if I use "curl -v -u user:password sftp://192.168.129.61/~/ --quote
> "-rm ~/abc/test.txt" to remove test.txt, it failed. I noted in the URL "~"
> character is supported.
>
> Does anybody give me a help?
>
> Thanks,
>
> Lisa
>
>
> On 2/19/09, Lisa Xu <lisa_xu_at_huatek.com> wrote:
>>
>> I want to remove a file test.txt from remote host. The file is in ~/abc/
>> folder.
>>
>> Following is the command:
>> curl -v -u user:password sftp://192.168.129.61*/~/abc/* --quote "-rm *
>> test.txt*"
>>
>> But this command just removed the file ~/test.txt not the file
>> ~/abc/test.txt.
>>
>> I use another command:
>> curl -v -u user:password sftp://192.168.129.61/~ --quote "-rm *
>> abc/test.txt*"
>> Then the file in ~/abc/test.txt is removed.
>>
>> I want to know why the first command is not fine.
>>
>> Thanks,
>>
>> Lisa
>>
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-20