LSF - Get ID of submitted job

后端 未结 5 933
予麋鹿
予麋鹿 2021-01-04 12:16

Say I submit a job using something like bsub pwd. Now I would like to get the job ID of that job in order to build a dependency for the next job. Is there some

5条回答
  •  萌比男神i
    2021-01-04 12:41

    In case you are using C++, you can use the lsblib, LSF C API to submit jobs. The input and the output are structs. In particular, the output struct contains the job id.

    #include     
    LS_LONG_INT lsb_submit (struct submit *jobSubReq, struct submitReply *jobSubReply)
    

提交回复
热议问题