Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With Platform LSF, is there a command that will wait for either a specific job or all my submitted jobs to finish before returning? In other words, I am looking for the LSF equivalent of the wait built-in command in bash.

share|improve this question
up vote 3 down vote accepted

If you give the -K option to bsub, it will wait for the job to complete before returning. You can then background several bsub commands in the shell and use the shell's wait command to wait for them. Example:

bsub -K -o out.1 sleep 10 &
bsub -K -o out.2 sleep 5 &
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .