cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SFTP commands

From: <nagarajan.sreenivasan_at_wipro.com>
Date: Thu, 26 Jun 2008 16:44:08 +0530

Hi all
 
I am using Linux platform
 
finally got rename working but now I have a problem with chmod
 
scenario:
========
 
I have a file with 555 permisison .
 
I want to change it to 777 permission.
 
but I am getting the following error

* Sending quote commands
* Attempt to set SFTP stats failed: Permission denied
* Connection #0 to host <hostname> left intact
* Quote command returned error
value of res in ChmodRemoteFile is : 21(CURLE_QUOTE_ERROR (21) )
 
Regards
Nagarajan

 
 
 
 

________________________________

From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
nagarajan.sreenivasan_at_wipro.com
Sent: Thursday, June 26, 2008 2:03 PM
To: curl-library_at_cool.haxx.se
Subject: Reg:SFTP commands

hi all
 
I am using linux platform
 
I am using currently using curl-7.18.2 version
 
I want to rename /chmod files in remote server using SFTP protocol
 
what is the command should i send via libcurl .
 
i tried rename (it didnt work)
 
is sftp commands supported or what is the way to achieve this
objective(renaming and changing mode of the files)
 
if libcurl supports which verison does it support?
 
below is the error output
 
I am trying to send rename <oldpath > <newpath>
 
* Sending quote commands
* Unknown SFTP command
* Connection #0 to host <hostname> left intact
* Quote command returned error
 the res value of in RenameRemoteFile is : 21
 
Regards
Nagarajan
 
 

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Received on 2008-06-26