How to use LSB_JOBINDEX in bsub array job arguments in Platform LSF?
问题 I would like to pass LSB_JOBINDEX to as an argument to my script instead of using an environment variable. This makes my script more LSF agnostic and avoids creating a helper script that uses the environment variable. However, I was not able to use LSB_JOBINDEX in arguments: it only works as part of the initial command string. For example, from a bash shell, I use the test command: bsub -J 'myjobname[1-4]' -o bsub%I.log \ 'echo $LSB_JOBINDEX' \ '$LSB_JOBINDEX' \ \$LSB_JOBINDEX \ '$LSB