SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Time difference SystemTime and FTP filetime

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Time difference SystemTime and FTP filetime
Author Message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Time difference SystemTime and FTP filetime Reply with quote

Dim( file_time, datetime )
Dim( sys_time, datetime, "@T"yyyy-mm-dd hh:mm:ss"")
Dim( seconds, number )
Dim( file_is_old, boolean )

FTPFileDateTime( ..., ... file_time)
DateTimeDiff( sys_time, file_time, seconds )
IsGreater( seconds, 60, file_is_old )
If(file_is_old, SEND_ALERT, DO_NEXT )
SEND_ALERT:
...
DO_NEXT:
...

: Support good afternoon,

: I'm struggeling with the JAL scripting to find out
: the difference in seconds between the time of an
: FTPfile (FTPFileDateTime I suppose) and the system
: time (Now ?). Do you have any suggestions ?

: It is for a script that has to check wether on the
: FTP site there are still files that are present
: since more then let's say 1 hour. Another script
: should have taken them and in case the files are
: still there an alert has to be sent to the
: administrator.

: Thanks for helping
: Robbert

Wed Nov 24, 2004 6:11 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.