SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Change Remote FTP-Directory

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Change Remote FTP-Directory
Author Message
Kenneth Roberts



Joined: 06 May 2002
Posts: 2

Post Change Remote FTP-Directory Reply with quote

Hi

Is it possible to change the remote FTP-Directory ?
Want to do something like:

FTPDir( "1.10.0.0.12", USER, PW, "/u1/AKLIVE/salog/SVITAMASTER*", tmpRemoteDIR )

"/u1/AKLIVE/salog" is not the initial directory after login

The "tmpRenmoteDIR" looks like : "SVITAMASTER001,SVITAMASTER002) etc.

If I try to use:
FTPGetFile( "1.10.0.0.12", USER, PW,tmpRemoteDIR, tmpRemoteDIR )

The GET doesn't find the files ... what can I do ?

Thanks
Kenneth Roberts

Mon May 06, 2002 7:50 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Change Remote FTP-Directory Reply with quote

The FTPGetFile doesn't find it because by default it uses comma "," as a list separator, so in you case if you specify the full file name it thinks that you are going to download two files.

To change this default behavior change the list separation symbol to something else, for example to change it to "%" use

FTPConfig "LIST SEPARATOR", "%"

Then you can do FTPGetFile with a full file name

: Hi

: Is it possible to change the remote FTP-Directory ?
: Want to do something like: FTPDir( "1.10.0.0.12", USER, PW,
: "/u1/AKLIVE/salog/SVITAMASTER*", tmpRemoteDIR )

: "/u1/AKLIVE/salog" is not the initial directory after login

: The "tmpRenmoteDIR" looks like :
: "SVITAMASTER001,SVITAMASTER002) etc.

: If I try to use: FTPGetFile( "1.10.0.0.12", USER, PW,tmpRemoteDIR,
: tmpRemoteDIR )

: The GET doesn't find the files ... what can I do ?

: Thanks
: Kenneth Roberts

Mon May 06, 2002 9:00 am View user's profile Send private message
Kenneth Roberts



Joined: 06 May 2002
Posts: 2

Post Re: Change Remote FTP-Directory Reply with quote

: The FTPGetFile doesn't find it because by default it uses comma ","
: as a list separator, so in you case if you specify the full file name it
: thinks that you are going to download two files.

We are trying to download 2 or more files.... !!! the result from the FTPDIR
which is without the directory information...

But I cant pass that to the FTPGetFile ....

: To change this default behavior change the list separation symbol to
: something else, for example to change it to "%" use

: FTPConfig "LIST SEPARATOR", "%"

: Then you can do FTPGetFile with a full file name

Mon May 06, 2002 9:29 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Change Remote FTP-Directory Reply with quote

Open help topic for FTPDir, click the Example button in the help system menu and then copy and paste the example script. It will do exactly what you want. Do not forget to insert FTPCofig.

Alternatively you can use the appropriate graphical job template that will help you to automate FTP downloading with wildcards (use File/New/Job From Template menu)

: We are trying to download 2 or more files.... !!! the result from the FTPDIR
: which is without the directory information...

: But I cant pass that to the FTPGetFile ....

Mon May 06, 2002 10:08 am 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.