cURL / Mailing Lists / curl-library / Single Mail


RE: SFTP - How to delete a file

From: Mathew Simon <>
Date: Thu, 30 Aug 2007 11:17:06 -0500

The syntax of the quote command do not matter. Give any non-empty string
as a quote command, whether valid or not, it gives the same error
message. I tried the "pwd" command, which is broken according to you,
and also the following flavors of the delete command. In my case the
files of interest are in the "ReceiveFiles" directory which is at the
root level (/ReceiveFiles).

> RM filename1.txt
> RM ReceiveFiles/filename1.txt
> RM /ReceiveFiles/filename1.txt
> RM
> RM s

Mathew Simon

-----Original Message-----
[] On Behalf Of Dan Fandrich
Sent: Thursday, August 30, 2007 10:35 AM
Subject: Re: SFTP - How to delete a file

On Thu, Aug 30, 2007 at 10:19:37AM -0500, Mathew Simon wrote:
> Ok, I tested the SFTP quote-command with the command line CURL
> (compiled on mingw32), and it gives more or less the same type of
> error for any quote commands. The SFTP download works. But if a quote
> command is given, it aborts with the following message.
> Curl: (21) Syntax error in SFTP command. Supply parameters(s)!

What is the exact syntax of the command you used when you got this

>>> Dan

--              The web change of address
          Let webmasters know that your web site has moved
Received on 2007-08-30