SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPGetFile fails with UNC destination

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPGetFile fails with UNC destination
Author Message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post FTPGetFile fails with UNC destination Reply with quote

*** WORKS ***
FTPGetFile( "ftp.ncbi.nih.gov", "", "", "blast/db/mito.nt.Z", "b:\\Data\downloads\mito.nt.Z" )

*** DOES NOT WORK ***
FTPGetFile( "ftp.ncbi.nih.gov", "", "", "blast/db/mito.nt.Z", "\\intron\blast\Data\downloads\mito.nt.Z" )

Error message:
Job FTP blast/db/mito.nt.Z execution error. Exit code -1. An error occurred while executing automation script:Line 17: Download failed for "". Error code 3.

NOTE: Line 17 is the FTPGetFile line that I have included.

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


Joined: 26 Nov 2006
Posts: 7949

Post Re: FTPGetFile fails with UNC destination Reply with quote

Please read FAQ section about about "special ASCII characters"

In your job script code

FTPGetFile( "ftp.ncbi.nih.gov", "", "",
"blast/db/mito.nt.Z", "\\\\intron\\blast\\Data\\downloads\\mito.nt.Z" )

: *** WORKS ***
: FTPGetFile( "ftp.ncbi.nih.gov", "", "",
: "blast/db/mito.nt.Z", "b:\\Data\downloads\mito.nt.Z" )

: *** DOES NOT WORK ***
: FTPGetFile( "ftp.ncbi.nih.gov", "", "",
: "blast/db/mito.nt.Z",
: "\\intron\blast\Data\downloads\mito.nt.Z" )

: Error message: Job FTP blast/db/mito.nt.Z execution error. Exit code -1. An
: error occurred while executing automation script:Line 17: Download failed
: for "". Error code 3.

: NOTE: Line 17 is the FTPGetFile line that I have included.

Wed Aug 28, 2002 1:54 pm View user's profile Send private message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post Re: FTPGetFile fails with UNC destination Reply with quote

OK, so please explain the line of code in the "FTP Download" sample:
"c:\\temp\disclaimer.txt"
This only uses the double back slashes for the first instance but not the others and then why does "b:\\Data\downloads\mito.nt.Z" this work?
Thanks

: *** WORKS ***
: FTPGetFile( "ftp.ncbi.nih.gov", "", "",
: "blast/db/mito.nt.Z", "b:\\Data\downloads\mito.nt.Z" )

: *** DOES NOT WORK ***
: FTPGetFile( "ftp.ncbi.nih.gov", "", "",
: "blast/db/mito.nt.Z",
: "\\intron\blast\Data\downloads\mito.nt.Z" )

: Error message: Job FTP blast/db/mito.nt.Z execution error. Exit code -1. An
: error occurred while executing automation script:Line 17: Download failed
: for "". Error code 3.

: NOTE: Line 17 is the FTPGetFile line that I have included.

Wed Aug 28, 2002 1:58 pm View user's profile Send private message
John Sweval



Joined: 28 Aug 2002
Posts: 9

Post Re: FTPGetFile fails with UNC destination Reply with quote

OK, so please explain the line of code in the "FTP Download" sample:
"c:\\temp\disclaimer.txt"
This only uses the double back slashes for the first instance but not the others and then why does "b:\\Data\downloads\mito.nt.Z" this work?
Thanks

: Please read FAQ section about about "special ASCII characters"

: In your job script code

: FTPGetFile( "ftp.ncbi.nih.gov", "", "",
: "blast/db/mito.nt.Z",
: "\\\\intron\\blast\\Data\\downloads\\mito.nt.Z" )

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


Joined: 26 Nov 2006
Posts: 7949

Post Re: FTPGetFile fails with UNC destination Reply with quote

This is not a very good example, but it will work. "\\t" translates to regular "\t" pair or chracters. The first back-slash indicates that the second back-slash is a regular characters and not an escape symbol for "t"

If you specify "c:\temp\disclaimer.txt" in run-time it will be translated to "c:[tab character here]emp\disclaimer.txt"

This has nothing to do with the position within the text.

: OK, so please explain the line of code in the "FTP Download"
: sample: "c:\\temp\disclaimer.txt"
: This only uses the double back slashes for the first instance but not the
: others and then why does "b:\\Data\downloads\mito.nt.Z" this
: work?
: Thanks

Wed Aug 28, 2002 2:13 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.