In your script below do you run it by submitting it to LSF using bsub? I ask because the LSB_JOBID is only set when the script is running in a job.
Also, LSF behaves the opposite of SGE at submission time. For example. bsub ./myscript is same as qsub -b yes ./my script And bsub < myscript is same as qsub myscript LSF really does improperly overload '<' Bill On May 2, 2013 7:35 PM, "Happy Monk" <[email protected]> wrote: > Thanks for the quick reply Reuti. > > How can I restrict prolog to only certain jobs ? Here is the LSF recipe > that we are trying to implement in SGE > > > #!/bin/bash > > bsub < preproc.sh > > echo $LSB_JOBID > > bsub -w 'done($LSB_JOBID)' < hostjob.sh > > echo $LSB_JOBID > > bsub -w 'started($LSB_JOBID)' < computejob.sh > > echo $LSB_JOBID > > > On Thu, May 2, 2013 at 9:00 AM, Reuti <[email protected]> wrote: > >> Hi, >> >> Am 02.05.2013 um 17:10 schrieb Happy Monk: >> >> > Is there any way to release hold of a job immediately after the >> dependent job started, usually this hold is released after execution of the >> dependent job. >> > >> > This function is available in LSF but checking whether its also >> available in SGE or not. >> >> Not directly. You could use a queue prolog to remove the actual starting >> job from all jobs which depend on this one. This makes it necessary, that >> all exechosts are also submission hosts. >> >> To remove a complete -hold_jid list, you can give the job id 0 there to >> `qalter`. As this job id will never be a real job, it always satisfies the >> condition as being completed already. >> >> -- Reuti >> > > > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users > >
_______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
