curl-users
Rename using CURL lists files in remote working directory. Want to suppress directory listing
Date: Mon, 9 May 2011 15:02:07 +0000
Hi,
We use curl command line tool to copy files to a remote server using ftp and SSL.
CURL command is
/usr/bin/curl --config /configdir/curl.cfg --ftp-port - -Q "RNFR tmp/c009.tif" -Q "RNTO tmp/cc009.tif.done" -u user:pwd ftp://remoteftpserver.com:21<ftp://remoteftpserver.com/>
After each rename, curl command output lists the entire remoter working directory.
-rw------- 1 ftpusr operations 4861 May 6 15:46 .Xauthority
-rw-r--r-- 1 ftpusr operations 3270 Sep 17 2009 .Xdefaults
-rw-r--r-- 1 ftpusr operations 495 Sep 17 2009 .Xresources
-rw------- 1 ftpusr operations 3439 May 14 2010 .bash_history
-rw-r--r-- 1 ftpusr operations 2675 Sep 17 2009 .ctwmrc
drwx------ 16 ftpusr operations 512 May 6 10:02 .dt
-rwxr-xr-x 1 ftpusr operations 5111 Sep 17 2009 .dtprofile
drwx------ 2 ftpusr operations 512 Sep 17 2009 .elm
drwxr-xr-x 3 ftpusr operations 512 May 24 2010 .java
drwx------ 5 ftpusr operations 512 Nov 9 2009 .netscape
drwx------ 2 ftpusr operations 512 Sep 17 2009 .netscape-cache
-rw------- 1 ftpusr operations 458 Sep 17 2009 .netscape-history
-rwxr-xr-x 1 ftpusr operations 4328 Sep 17 2009 .profile
drwxrwxr-x 2 ftpusr operations 512 Mar 23 15:06 .pwd
-rw------- 1 ftpusr operations 5594 May 6 16:39 .sh_history
drwx------ 2 ftpusr operations 512 May 6 10:02 .solregis
drwx------ 2 ftpusr operations 512 Sep 21 2009 .ssh
-rw------- 1 ftpusr operations 6715 Jan 27 2010 .viminfo
-rw------- 1 ftpusr operations 763 Sep 17 2009 .xsession-errors
-rw-rw-r-- 1 ftpusr operations 41 Mar 31 2010 afiedt.buf
Is there a way to suppress this listing?
Thanks,
Raghu
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-09