cURL / Mailing Lists / curl-users / Single Mail

curl-users

Ftping a file and renaming the file at the remote server

From: <VeeraraghJ_at_usa.redcross.org>
Date: Mon, 11 Jul 2005 17:23:58 -0400

Hi
I have been requested to first ftp a file and then rename the file once
the transfer is complete..
I gave the following command
curl --insecure --verbose --disable-epsv -B -Q '-RENAME $file
TEST_FILE.txt' --ftp-ssl -T $WORKDIR$file -u $USERID:$PASSWD $FSECURELOC

 
 
I get the following error when executing this
 SSL certificate verify result: error number 1 (18), continuing anyway.
> USER XXXXXXXX
< 331 Password required
> PASS XXXXXXXX
< 230-user logged in
< 230-Welcome XXXXXXXX, you are using 11306290 bytes in 39 files.
< 230 user logged in
* We have successfully logged in
> PBSZ 0
< 200 PBSZ=0
> PROT P
< 200 PRIVATE data channel protection level set
> PWD
< 257 "/Users/xXXXXX" is current directory
* Entry path is '/Users/XXXXXXXX
> PASV
< 227 Entering Passive Mode (XXXXXXXX).
* Trying 208.11.88.32... * connected
* Connecting to xxxxxxxx(XXXXXXXX) port 2002
* Connected the data stream with PASV!
> TYPE A
< 200 Type set to ASCII.
> STOR arcap_20050711_165135.bak
< 150 Opening ASCII data connection for arcap_20050711_165135.bak
* Doing the SSL/TLS handshake on the data stream
* successfully set certificate verify locations:
* CAfile: /usr/local/share/curl/curl-ca-bundle.crt
  CApath: none
* SSL re-using session ID
* SSL connection using DHE-RSA-AES128-SHA
* Server certificate:
* start date: 2004-08-09 19:14:39 GMT
* expire date: 2014-08-10 00:14:38 GMT
* common name: secureftp.innovativesystems.com (matched)
* SSL certificate verify result: error number 1 (18), continuing anyway.
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  8 196k 0 0 8 16384 0 10497 0:00:19 0:00:01 0:00:18
10497
 24 196k 0 0 24 49152 0 27613 0:00:07 0:00:01 0:00:06
145k< 226 transfer complete; 99961 files remaining
> RENAME $file TEST_FILE.txt
< 500 illegal command
* QUOT string not accepted: RENAME $file TEST_FILE.txt
100 196k 0 0 100 196k 0 68613 0:00:02 0:00:02 --:--:--
131k
* Connection #0 to host Secureftp.innovativesystems.com left intact
curl: (21) QUOT string not accepted: RENAME $file TEST_FILE.txt
> QUIT
< 221-Good-Bye
< 221-Leaving XXX Systems Secure FTP site.
< 221 Good-Bye
* Closing connection #0
Transfer of file to host ftp://XXXXXXx.com/ failed: 21!
 
 
 
I tried to even use -Q '-ls' even that failed..

Please let me know what the solution for this is!
Thanks,
Jaya V.
 
Received on 2005-07-11