Error Code 123 is reported by your FTP server so scheck your FTP server docs to find out the description. Most servers use this code to indicate "insufficient privileges". You should have at least "read" access to the file and all subdirecties. : I have a short script based upon the sample "FTP Download" script. : It is provided below. I am attempting to down load files from an NCBI : download FTP directory. One of the requested files (nt.Z) fails with the : following log message: Job FTP blast/db/nt.Z execution error. Exit code: : -1. An error occurred while executing automation script: Line 17: Download : failed for "". Error Code 123. : What is generating the 123 error code? Where do I look to know what this code : means? I am only using 24x7 function calls, but I can not find any : documentation on error codes. : I have tried this with three source files: "blast/db/mito.nt.Z" - a : small file for simple testing : "blast/db/htg.Z" - a large file (2Gb) to assure works on large file : "blast/db/nt.Z" - FAILS: a large file (1.7Gb) : SCRIPT : ------ : Dim process_id, number : Dim found, boolean : // blast/db/nt.Z - does not work : // blast/db/mito.nt.Z - small file that works : // blast/db/htg.Z - large file (2Gb) that appears to work : // Watch for file on remote FTP site. : FTPFileExists( "ftp.ncbi.nih.gov", "", "", : "blast/db/nt.Z", found ) : // If the file found, : // continue processing, otherwise exit and wait for the next cycle : if (found, DOWNLOAD, END ) : DOWNLOAD: // Download the file from Microsoft FTP site : FTPGetFile( "ftp.ncbi.nih.gov", "", "", : "blast/db/nt.Z", "b:\\Data\downloads\nt.Z" ) : // Do something with the downloaded file, for example you can display : // it in the Notepad : //Run( "notepad c:\\temp\disclaimer.txt", "", process_id : ) : // Delete the file - in a real-world you most likely will do this : // FTPDeleteFile( "ftp.microsoft.com", "", "", : "disclaimer.txt" ) : END: // Done
|