SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTP not FTPing !

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTP not FTPing !
Author Message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post FTP not FTPing ! Reply with quote

I have created a script that can be called and passed 2 parameters - the p_agency_name and the p_full_filename :
// ftp the agency files to Leeds_primary
Dim short_file_name, string
Dim ftp_file_name, string
Dim no_more, boolean
Dim local_file_name, string
Dim file_list, string
//
FTPDir "10.10.1.7", "tenhill", "Armani", p_full_filename, file_list
isEqual file_list, "", no_more
LoopUntil no_more, END_LOOP

GetToken ",", file_list, short_file_name

Concat, "/pfu/pfv6/export/dialler/", short_file_name, ftp_file_name

ConcatEx, "\\\\leeds_primary\\secure\\Agency Control\\Dialler File Processing\\Third Party Outgoing\\", p_agency_name, "\\", short_file_name, local_file_name

FTPGetFile "10.10.1.7", "user", "password", ftp_file_name, local_file_name;

// to delete the file after sucessful downloading uncomment the following line

// FTPDeleteFile "10.10.1.7", "tenhill", "Armani", ftp_file_name

isEqual file_list, "", no_more
END_LOOP:
exit

Problem is it does not FTP the file - there are no errors when I run it and the file exists on the remote server but it does not get FTP'd.
When I look at the local_file_name variable it looks OK, I can't understand why it doesn't get sent.

I am calling the script with :
ftp_agency_file(agency_name, "/pfu/pfv6/export/dialler/4A*.txt")

where the script name is ftp_agency_file

Wed Feb 05, 2003 8:02 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7963

Post Re: FTP not FTPing ! Reply with quote

Please run the job in the debugger step by step to find out where it does not work.

My guess you are passing incorrect value for p_full_filename, as a result the FTPDir statement returns an empty list.
The p_full_filename should contain file name relative to your ftp user directory like you use for ftp_file_name variable.

You can also enable the trace option and run the job as is then analyze the script.log file.

PS. I have replaced user name and password with dummy values just in case... to prevent non-authorized people from connecting to your sever.

: I have created a script that can be called and passed 2 parameters - the
: p_agency_name and the p_full_filename : // ftp the agency files to
: Leeds_primary
: Dim short_file_name, string
: Dim ftp_file_name, string
: Dim no_more, boolean
: Dim local_file_name, string
: Dim file_list, string
: //
: FTPDir "10.10.1.7", "user", "password",
: p_full_filename, file_list
: isEqual file_list, "", no_more
: LoopUntil no_more, END_LOOP

: GetToken ",", file_list, short_file_name

: Concat, "/pfu/pfv6/export/dialler/", short_file_name, ftp_file_name

: ConcatEx, "\\\\leeds_primary\\secure\\Agency Control\\Dialler File
: Processing\\Third Party Outgoing\\", p_agency_name, "\\",
: short_file_name, local_file_name

: FTPGetFile "10.10.1.7", "tenhill", "Armani",
: ftp_file_name, local_file_name;

: // to delete the file after sucessful downloading uncomment the following
: line

: // FTPDeleteFile "10.10.1.7", "tenhill",
: "Armani", ftp_file_name

: isEqual file_list, "", no_more
: END_LOOP: exit

: Problem is it does not FTP the file - there are no errors when I run it and
: the file exists on the remote server but it does not get FTP'd.
: When I look at the local_file_name variable it looks OK, I can't understand
: why it doesn't get sent.

: I am calling the script with : ftp_agency_file(agency_name,
: "/pfu/pfv6/export/dialler/4A*.txt")

: where the script name is ftp_agency_file

Wed Feb 05, 2003 9:14 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: FTP not FTPing ! Reply with quote

: PS. I have replaced user name and password with dummy values just in case...
: to prevent non-authorized people from connecting to your sever.

Thanks - I guess I should have done that !

It works now - I took off the semi-colon on the end of the FTPGetFile command.
The syntax checker should have picked that up but it didn't do when I pressed the Validate button.

These scripts are good - I'm well-impressed with this product - FYI at an Oracle User Group conference I was at some guys had a scheduling product they were selling and whilst some bits looked more polished it basically did what 24x7 does and maybe not as much and was far more expensive and I told them that. I still claimed my free t-shirt though for watching their demonstration !

Wed Feb 05, 2003 9:19 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.