Hi Team,
I am using the below command to download the file from the remote FTP server and then delete the source file. As from the command you can see that there multiple files which needs to be downloaded and removed from the source folder (in short I want to MOVE the files from the FTP server to the local machine). Where in fact this program works and is able to download the files, which deleting it gives a permission issue. Though I checked the permissions and found that the user has the permission to delete the files. Where in fact it delete the file but before deleting it gives an error.
In short this is the sequence (suppose there are 2 files on the ftp) -
1. 1st File is downloaded
2. The command tries to delete the first file and gives permission error
3. The command actually successfully deletes the first file but due to the error in 2. it is not able to download the second file and command completes just downloading the first file and deleting it from source but the second file onwards are not downloaded.
Can you please help me with what is going on here?
[code]"C:\Program Files (x86)\CoreFTP\corecmd.exe" -s -O -site FTP -d /Service_Technical/SocialMedia/inbound/*.txt -p C:\Temp -delsrc -log C\Temp\FQR_CRMS_TL_DL.log -output C:\Temp\Output_FQR_CRMS_TL_DL_%VERSION%.log[/code]
Logs file output -
07/11/14 14:45 (1789)
Resolving mgr.motors.com...
mgr.motors.com [2222] connecting...
SSH-2.0-SSHD
client -> aes128
server -> aes128
1b:9a:a5:42:73:32:fb:3f:b1:b4:cf:e0:72:86:a5:57
ssh-rsa
Sending password
PWD
Current directory is '/'
CWD /
DELE CRMS_20140711.txt
permission denied...
DELE /Service_Technical/SocialMedia/inbound/CRMS_20140711.txt
CWD /Service_Technical/SocialMedia/inbound/
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 14,570 KB
Log file output when use the "show" parameter it says it is not able to load the directory-
07/11/14 14:45 (1789)
Resolving mgr.motors.com...
mgr.motors.com [2222] connecting...
SSH-2.0-SSHD
client -> aes128
server -> aes128
1b:9a:a5:42:73:32:fb:3f:b1:b4:cf:e0:72:86:a5:57
ssh-rsa
Sending password
PWD
Current directory is '/'
CWD /
DELE CRMS_20140711.txt
Cannot send/receive/list at this time, connection busyData port failedError loading directory...CWD /Service_Technical/SocialMedia/inbound/
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 14,570 KB
CoreFTP not working correctly to delete source files
-
- Posts: 1
- Joined: Fri Jul 11, 2014 8:21 pm