SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job replication

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job replication
Author Message
Romain



Joined: 02 Dec 2005
Posts: 4

Post Job replication Reply with quote

Hi,

This subject makes reference to this one: http://www.softtreetech.com/cgi_bin/config.cgi?read=7251
I use the job from template "Copy entire job database including settings to remote 24x7 scheduler" and it works very well. I make jobs on PC1 and update the PC2 by this job.
Is it possible to activate a job only when it is on PC2 (by the pc name, etc...) ? Because when I build a new job on PC1, the other jobs also work and start while this base (on PC1) serves me only as construction. And if I deactivate the works during the sending those this are also deactivated on PC2.

Thanks for your help.

Sun Jan 01, 2006 11:33 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: Job replication Reply with quote

What you can do is converting that job to a script type job (JAL or VBScript) and making it to check on the start up name of the computer running the job. For example, in case if the name isn't PC1 then simply abort the job, otherwise run the required processing.

Here is an example JAL script (similar thing can be done in VBScript)

// check PC name, exit if not PC1
Dim run_it, boolean
IsEqual "PC1", "@V"computer"", run_it
IfThen run_it, RUN_JOB
// if we are here then computer name is not PC1... abort the job
Exit

RUN_JOB:
// run the actual job
Dim process_id, number
RunAndWait "c:\\programs\\some_batch.bat", "", 0, process_id

: Hi,

: This subject makes reference to this one:
: http://www.softtreetech.com/cgi_bin/config.cgi?read=7251
: I use the job from template "Copy entire job database including settings
: to remote 24x7 scheduler" and it works very well. I make jobs on PC1
: and update the PC2 by this job.
: Is it possible to activate a job only when it is on PC2 (by the pc name,
: etc...) ? Because when I build a new job on PC1, the other jobs also work
: and start while this base (on PC1) serves me only as construction. And if
: I deactivate the works during the sending those this are also deactivated
: on PC2.

: Thanks for your help.

Mon Jan 02, 2006 10:38 pm View user's profile Send private message
Romain



Joined: 02 Dec 2005
Posts: 4

Post Re: Job replication Reply with quote

Thank you very much, your JAL script works very well and now the jobs run only when they are executed on PC2 !
:-)

: What you can do is converting that job to a script type job (JAL or VBScript)
: and making it to check on the start up name of the computer running the
: job. For example, in case if the name isn't PC1 then simply abort the job,
: otherwise run the required processing.

: Here is an example JAL script (similar thing can be done in VBScript)

: // check PC name, exit if not PC1
: Dim run_it, boolean
: IsEqual "PC1", "@V"computer"", run_it
: IfThen run_it, RUN_JOB
: // if we are here then computer name is not PC1... abort the job
: Exit

: RUN_JOB: // run the actual job
: Dim process_id, number
: RunAndWait "c:\\programs\\some_batch.bat", "", 0,
: process_id

Fri Jan 06, 2006 8:56 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.