SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
ftp filewatcher case insenstive

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
ftp filewatcher case insenstive
Author Message
mmittiga



Joined: 03 Aug 2010
Posts: 14
Country: United States

Post ftp filewatcher case insenstive Reply with quote
Right now I am checking every 10 minutes for file to exist on a ftp server.
File I am checking for recently started coming in lower case one day and uppercase the next day.

example of how I am currently doing the FTPFileExists,


// Append file extension
Concat( "XXX/ABC_DEF" ,".CSV", file_name )

CHECK_FOR_FILE:
// Watch for file on remote FTP site.
FTPFileExists "ftp.xxxxx.com", "xxxx", "xxxx",file_name, file_found
ifthen file_found, RUN_JOB, TIMEOUT

TIMEOUT:
// wait 600 seconds then try again
Wait 600
Add wait_time, 600, wait_time

// check if we are waiting already too long (more than 30 minutes)
isGreater wait_time, 7200, timeout
if timeout, NOTIFY, TRY_LATER

Is there a way to write FTPFileExists to be case insensitive?

Thanks for any help or suggestions.
Tue Apr 22, 2014 11:29 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6509

Post Reply with quote
You can use FTPDir to get the full file listing, then convert the output to lower case and search for the required file name in lower case. Hope that helps.
Tue Apr 22, 2014 12:30 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.