SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Schedule Jobs to look for files only at certai

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Schedule Jobs to look for files only at certai
Author Message
Elias Spielman



Joined: 06 Feb 2002
Posts: 6

Post Schedule Jobs to look for files only at certain t Reply with quote

Can you Schedule Jobs to look for files only at certain times (ie from 8:00 pm to 5:00 am) ?

Elias

Wed Feb 06, 2002 5:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Schedule Jobs to look for files only at certai Reply with quote

Sure. Use "Run program from 9am to 5pm" job template to create a new script type job. In the job code change 9:00 to 8:00 and insert logic to check for file

For more info please see FileExists topic and examples in the on-line help.

: Can you Schedule Jobs to look for files only at certain times (ie from 8:00
: pm to 5:00 am) ?

: Elias

Wed Feb 06, 2002 5:10 pm View user's profile Send private message
Elias Spielman



Joined: 06 Feb 2002
Posts: 6

Post Re: Schedule Jobs to look for files only at certai Reply with quote

I only want the scheduler to start looking for the files at 8:00 pm and keep looking for it till 5:00 am. Basically keep looking till found only between 8 and 5. Once found process job else alert to problem or maybe some alternate process.
Elias

: Sure. Use "Run program from 9am to 5pm" job template to create a
: new script type job. In the job code change 9:00 to 8:00 and insert logic
: to check for file

: For more info please see FileExists topic and examples in the on-line help.


Wed Feb 06, 2002 5:34 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Schedule Jobs to look for files only at certai Reply with quote

Yes, this is what I was talking about. The template will generate the code you need to run some program from 9 to 5. You change the code to check for files rather then run that program and then if the file(s) is found do what you want.

The algorithm in template is
IF time is between 9 to 5 THEN

run my program
END IF

Your algorithm is
IF time is between 8 to 5 THEN

IF my files exist THEN

do what I want here

END IF
END IF

As you see the job will check for files only from 8 to 5

: I only want the scheduler to start looking for the files at 8:00 pm and keep
: looking for it till 5:00 am. Basically keep looking till found only
: between 8 and 5. Once found process job else alert to problem or maybe
: some alternate process.
: Elias

Wed Feb 06, 2002 5:53 pm View user's profile Send private message
Elias Spielman



Joined: 06 Feb 2002
Posts: 6

Post Re: Schedule Jobs to look for files only at certai Reply with quote

If files are not here yet what do I do. Restart job again?

: Yes, this is what I was talking about. The template will generate the code
: you need to run some program from 9 to 5. You change the code to check for
: files rather then run that program and then if the file(s) is found do
: what you want.

: The algorithm in template is
: IF time is between 9 to 5 THEN

: run my program
: END IF

: Your algorithm is
: IF time is between 8 to 5 THEN

: IF my files exist THEN

: do what I want here

: END IF
: END IF

: As you see the job will check for files only from 8 to 5

Wed Feb 06, 2002 5:58 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Schedule Jobs to look for files only at certai Reply with quote

It will restart by itself, just set the job schedule to run "All day" every X minutes or seconds. The rest is done in the script logic.

: If files are not here yet what do I do. Restart job again?

Wed Feb 06, 2002 6:04 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.