title: Passing arguments from command line into a tcl script
body: <p>I have a TCL script that has many parameters defined as arguments. I intend to create a job file where I can execute the .tcl script with different combinations of the parameters without manual intervention.</p>
  
  <p>What I mean is the following:</p>
  
  <p>Job File (run.sh):</p>
  
  <pre><code>./main.tcl arg1 arg2 arg3 arg4 
  ./main.tcl arg1 arg3 arg5
  </code></pre>
  
  <p>Now I want to be able to pass the command line argument array "argv" for each run mentioned in run.sh as an array into the main.tcl script so that the options are set accordingly within the script prior to execution.</p>
  
  <p>Is there a way to link the .sh script and the .tcl script?</p>