cURL / Mailing Lists / curl-library / Single Mail

curl-library

SFTP Command Execution

From: Paul Romero <paulr_at_rcom-software.com>
Date: Sun, 04 Jul 2010 11:25:28 -0700

Dear Group:

It seem that CURLOPT_QUOTE and CURLOPT_PREQUOTE
don't work for libcurl 7.21.0 for SFTP. For instance, consider
the following example:

     struct curl_slist *paction = NULL;
         ....
     curl_slist_append(paction, "rm x.c");
     curl_easy_setopt(hnd, CURLOPT_QUOTE, paction);
        ...
      curl_perform(hnd);

The connection to the SFTP server works and the file
is fetched but the file x.c is not removed. Also, I
am not sure how to verify that the rm command--or
any other succeeded, with the API. Does this feature
work, and if so, is there something important I am
forgetting ?

Best Regards,

Paul R.

--
Paul Romero
RCOM Communications Software
Phone/Fax: (510)339-2628
E-Mail: paulr_at_rcom-software.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-04