I'm writing this LSF script to make it easier to send jobs to a cluster when varying certain parameters. At one point I'd like to do something like:
set NPROC = 10
and later on call BSUB using something like:
#BSUB -n $NPROC
unfortunately for me, this throws an error:
Bad argument for option -n. Job not submitted.
Anyone with an idea on how to pass BSUB a variable? With this example it sounds sort of roundabout, but sometimes you want to do some arithmetic with $NPROC before passing it to #BSUB and then being able to do it this way may be something very useful.
Thanks!
---------- Post updated at 06:01 PM ---------- Previous update was at 05:57 PM ----------
Sorry, I read the post back and I wanted to make sure the problem is clear, this works straight away: