title: How to Pass Parameters from QSub to Bash Script?
body: <p>I'm having an issue passing variables to a Bash script using QSub.</p>
  
  <p>Assume I have a Bash script named example. The format of example is the following:</p>
  
  <pre><code>#!/bin/bash
  # (assume other variables have been set)
  
  echo $1 $2 $3 $4
  </code></pre>
  
  <p>So, executing "bash example.sh this is a test" on Terminal (I am using Ubuntu 12.04.3 LTS, if that helps) produces the output "this is a test".</p>
  
  <p>However, when I enter "qsub -v this,is,a,test example.sh", I get no output. I checked the output file that QSub produces, but the line "this is a test" is nowhere to be found.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thank you.</p>