| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
RE: Remove remote file issue using CURL SFTP
From: Young,Jim <Jim.Young_at_cerner.com>
Date: Fri, 9 Jul 2010 17:00:21 -0500
>As you can see above, I am getting 'Permission denied' issue while deleting the file (after download) on TEST B. In order to debug the issue, I executed the following >scenarios on TEST B:
1. curl -v -u adc_xfer: -O --key /apps2/edi/.ssh/id_rsa --pubkey /apps2/edi/.ssh/id_rsa.pub sftp://secureftp.ppp.com:10022/testt.txt -Q 'rm testt.txt' (This doesn't contain '-' sign before 'rm'): In this case, as expected, file was deleted successfully and the file download failed (because file was already deleted)
The successful execution of the above scenarios really amazed me as to why the 'file deletion after download' doesn't work with CURL SFTP. FYI, the file size is really small.
I've noticed the same problem and haven't found a solution to it either. I just coded around it in my shell script.
----------------------------------------------------------------------
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info