SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPGetFile Error Code 123 ???

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPGetFile Error Code 123 ???
Author Message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post FTPGetFile Error Code 123 ??? Reply with quote

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

Wed Aug 28, 2002 1:55 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Re: FTPGetFile Error Code 123 ??? Reply with quote

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

Wed Aug 28, 2002 2:07 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.