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
bsub pwd
$jobid = "0" bsub pwd > $jobid cat $jobid