SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Triggering an action by the existence of a fil

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Triggering an action by the existence of a fil
Author Message
Brian



Joined: 15 Mar 2001
Posts: 5

Post Triggering an action by the existence of a file Reply with quote

I am looking at 24x7 Scheduler and like many of the features it offers.

The current task I'm working on now is a way to generate email alerts. I use a commandline program called BLAT for sending SMTP emails.

One type of event I would like to trigger is something like the following:
IF R:\DATA\IN PROGRESS\FILE.001 EXISTS for 30 minutes or more then perform action.

I'm capable of scripting the action to take, but would like a way of actually polling for the existence of files (with wilcards) and triggering the event if the file exists for too long. We generate time-critical files that other processes are scheduled to transfer. If the file is not transfered, within a given amount of time someone needs to be notified.

Any ideas?

Can this be accomplished with 24x7 Scheduler?

Regards,
Brian Erdelyi
berdelyi@edulinx.ca

Thu Mar 15, 2001 2:55 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Triggering an action by the existence of a fil Reply with quote

Create script job to get list of files (Dir statement) and have it loop through the list (LoopWhile or LoopUntil with GetToken). For each found file get file date (FileDate) and time (FileTime) and compare it to the current time (DateTime, DateTimeDiff). If it is older (isGreater) than 30 minutes send email (MailSend) or other notification.

: I am looking at 24x7 Scheduler and like many of the features it offers.

: The current task I'm working on now is a way to generate email alerts. I use
: a commandline program called BLAT for sending SMTP emails.

: One type of event I would like to trigger is something like the following: IF
: R:\DATA\IN PROGRESS\FILE.001 EXISTS for 30 minutes or more then perform
: action.

: I'm capable of scripting the action to take, but would like a way of actually
: polling for the existence of files (with wilcards) and triggering the
: event if the file exists for too long. We generate time-critical files
: that other processes are scheduled to transfer. If the file is not
: transfered, within a given amount of time someone needs to be notified.

: Any ideas?

: Can this be accomplished with 24x7 Scheduler?

: Regards,
: Brian Erdelyi
: berdelyi@edulinx.ca

Thu Mar 15, 2001 3:21 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Triggering an action by the existence of a fil Reply with quote

I forgot to say that this job could have file-watch schedule type. For the file-watch trigger specify appropriate file mask, for example "R:\DATA\IN PROGRESS\FILE.*"

: Create script job to get list of files (Dir statement) and have it loop
: through the list (LoopWhile or LoopUntil with GetToken). For each found
: file get file date (FileDate) and time (FileTime) and compare it to the
: current time (DateTime, DateTimeDiff). If it is older (isGreater) than 30
: minutes send email (MailSend) or other notification.

Thu Mar 15, 2001 3:27 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.