cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and libssh2

From: Michael Wood <esiotrot_at_gmail.com>
Date: Fri, 16 Oct 2009 09:26:06 +0200

Hi

2009/10/16 Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>:
>> -----Original Message-----
>> From: curl-library-bounces_at_cool.haxx.se
>> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Michael Wood
>>
>> See the "-Q" option in the curl man page and try it with the
>> "--libcurl" option.
>
> I want to delete the file ~/scan/test.txt, but:
> ===================================================
> qxu@durian(pts/1):~/opensrc/curl-7.19.6/src[110]$ ./curl -v -u qxu:fair123 -Q rm sftp://13.198.98.190/~/scan/test.txt
[...]
> curl: (21) Syntax error in SFTP command. Supply parameter(s)!
> * Closing connection #0
> ===================================================
> Anything wrong in the parameter to the option -Q?

I have never used the -Q option myself, but I believe you need
something like this:

curl ... -Q "rm /path/to/test.txt" sftp://...

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-16