Platform LSF Administration Guide Version 6.2

Dependency Conditions
Administering Platform LSF
378
Dependency Conditions
The following dependency conditions can be used with any job:
done(job_ID | "job_name")
ended(job_ID | "job_name")
exit(job_ID [,[op] exit_code])
exit("job_name"[,[op] exit_code])
external(job_ID | "job_name", "status_text")
job_ID | "job_name"
post_done(job_ID | "job_name")
post_err(job_ID | "job_name")
started(job_ID | "job_name")
done
Syntax
done(
job_ID | "job_name")
Description
The job state is DONE.
ended
Syntax
ended(
job_ID | "job_name")
Description
The job state is EXIT or DONE.
exit
Syntax
exit(
job_ID | "job_name"[,[operator] exit_code])
where operator represents one of the following relational operators:
>
>=
<
<=
==
!=
Description
The job state is EXIT, and the job’s exit code satisfies the comparison test.
If you specify an exit code with no operator, the test is for equality (== is assumed).
If you specify only the job, any exit code satisfies the test.
Examples
exit (myjob)
The job named myjob is in the EXIT state, and it does not matter what its exit code
was.
exit (678,0)
The job with job ID 678 is in the EXIT state, and terminated with exit code 0.
exit ("678",!=0)
The job named 678 is in the EXIT state, and terminated with any non-zero exit
code.