curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Quoting to delete remote file does not work when pulling a file

From: Stolz, Werner \(Chicago\) via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 27 May 2020 21:21:46 +0000

I am using curl on an AIX server. Here is the version.
[DC:dev01:/interfaces/test/bin] curl --version
curl 7.64.0 (powerpc-ibm-aix6.1.9.0) libcurl/7.64.0 OpenSSL/1.0.2o zlib/1.2.11 libssh2/1.8.2
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

When I try to pull a file and then delete it from the remote server, curl delete the file BEFORE it pulls it. I searched for this
type of error and could not find anyone else who has experienced it.

This is all in my development region, so I have control of both sides of the transfer. Also, I made sure the file
existed on the "remote" server before I ran this command:

[DC:dev01:/] curl -v -s -S sftp://dev04.company.com:22/~/remotefilename.asc -o /interfaces/xyz/ext/rec>
* Expire in 0 ms for 6 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 0 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 2 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 1 ms for 1 (transfer 0x11004eb30)
* Expire in 2 ms for 1 (transfer 0x11004eb30)
* Expire in 2 ms for 1 (transfer 0x11004eb30)
* Expire in 2 ms for 1 (transfer 0x11004eb30)
* Expire in 2 ms for 1 (transfer 0x11004eb30)
* Trying 10.31.160.117...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x11004eb30)
* Connected to dev04.company.com (10.31.160.117) port 22 (#0)
* SSH MD5 fingerprint: fc157cbdc919be051237cd41bdf2a2ea
* SSH host check: 0, key: AXXAB3NzaC1yc2EAAACAAQABAAABAQDGpW8Jq/FkjpXh1uGMHUEB7CFQXHdiBeVaewUYFxls974Skdispdhs/xZvq2PzJQ15gphvOmkxEH9xrBhLoLipb+4vOeXG1gSZSMKWtmTa99BcORxJxjf10mW8icMLgxUFGWELRzDDSCk4EAXfL1qNc+6jdvHzJVwc9LZz2yC9zmbyEtXyF66nXmNgdBTzMXEYRf+T4IAYo9HSaX6X7R6AEV7X5TxKSMTRCmLxb7aC4MJLat/bauNG8ozAZj1gicByabDBC2CgRl/Jq/4NUqY/eivduJxbj5U6q24VJE3I9+4yezcLPp5bus4sl9uC4JXqJ8kwGguFRbsVSjk1axY9
* SSH authentication methods available: publickey,password,keyboard-interactive,hostbased
* Using SSH private key file '/home/user/.ssh/id_rsa'
* Initialized SSH public key authentication
* Authentication complete
* Sending quote commands
* Could not open remote file for reading: No such file or directory
* Connection #0 to host dev04.company.com left intact
curl: (78) Could not open remote file for reading: No such file or directory

Werner Stolz
Senior Software Developer
Tegra118
Office: + 1 312-739-2256 | Mobile: + 1 331-238-3870
www.tegra118.com<http://www.tegra118.com>

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-27