 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Eugene
Joined: 29 Dec 2003 Posts: 11
|
|
External jobs |
|
We have external job, which should create semaphore file when it finished. It works perfectly in case when this job is scheduled for some time (I mean if it should start at 13.30 and it takes 5 minutes to run this job, semaphore file would be created at 13.35), but when we run this job from command line (as 24X7.EXE /JOB jobid) it finishes in seconds not waiting for external job to be finished and creates semaphore file immediately. For us is really important to run job from command line and have semaphore file only when the external job is really finishes, is it possible? Thanks, Eugene
|
|
Tue Dec 30, 2003 9:07 am |
|
 |
Eugene
Joined: 29 Dec 2003 Posts: 11
|
|
Re: External jobs |
|
External executable file is called in both cases and in both cases works fine. The problem is when we call job from command line, 24x7 starts external job and than creates semaphore file immediately, not waiting for this external job to be finished (though there are no errors and executable file finishes later fine, but we need 24x7 to wait with creating semaphore to the moment when job really done) : The job should run exactly the same in both modes. What does it do? Why does : it finish much faster from command line? Any related errors or warning : reported in the job log?
|
|
Tue Dec 30, 2003 9:15 am |
|
 |
Eugene
Joined: 29 Dec 2003 Posts: 11
|
|
Re: External jobs |
|
External executable file is called in both cases and in both cases works fine. The problem is when we call job from command line, 24x7 starts external job and than creates semaphore file immediately, not waiting for this external job to be finished (though there are no errors and executable file finishes later fine, but we need 24x7 to wait with creating semaphore to the moment when job really done) : The job should run exactly the same in both modes. What does it do? Why does : it finish much faster from command line? Any related errors or warning : reported in the job log?
|
|
Tue Dec 30, 2003 9:38 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: External jobs |
|
Set the job to run synchronous. This will cause it to wait for the external process to complete before doing anything else. : External executable file is called in both cases : and in both cases works fine. : The problem is when we call job from command line, : 24x7 starts external job and than creates semaphore file : immediately, not waiting for this external job to be finished : (though there are no errors and executable file finishes : later fine, but we need 24x7 to wait with creating semaphore : to the moment when job really done)
|
|
Tue Dec 30, 2003 9:40 am |
|
 |
Eugene
Joined: 29 Dec 2003 Posts: 11
|
|
Re: External jobs |
|
External executable file is called in both cases and in both cases works fine. The problem is when we call job from command line, 24x7 starts external job and than creates semaphore file immediately, not waiting for this external job to be finished (though there are no errors and executable file finishes later fine, but we need 24x7 to wait with creating semaphore to the moment when job really done) : The job should run exactly the same in both modes. What does it do? Why does : it finish much faster from command line? Any related errors or warning : reported in the job log?
|
|
Tue Dec 30, 2003 9:40 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
Re: External jobs |
|
Please see my comments in the previous message thread. : We have external job, which should create semaphore file : when it finished. It works perfectly in case when this : job is scheduled for some time (I mean if it should start : at 13.30 and it takes 5 minutes to run this job, semaphore file : would be created at 13.35), but when we run this job from command line : (as 24X7.EXE /JOB jobid) it finishes in seconds not waiting for external : job to be finished and creates semaphore file immediately. : For us is really important to run job from command line and have semaphore : file : only when the external job is really finishes, is it possible? : Thanks, : Eugene
|
|
Tue Dec 30, 2003 9:41 am |
|
 |
|
|
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
|
|
|