title: call bash function with bsub lsf within bash script
body: <p>I have a bash function i would like to bsub.  It is recursively called when i try to source the script, but if i don't source the script it doesn't seem to recognize my function.  How do I correctly call besub on a function within the same script file?</p>
  
  <p>my_script(should print "12345"):</p>
  
  <pre><code>#! /bin/sh
  function myFunct {
  echo $1
  }
  
  bsub -q myQueue "source ./my_script; myFunct 12345"
  </code></pre>