title: How to submit 2 jobs (to run 2 python scripts in parallel located in 2 different directories) in linux?
body: <p>I need to run 2 different python scripts: script1 and script2 in parallel without any interaction. They are located as the following way:</p>
  
  <p>dir0 contains the file jobcript.py and 2 directories named dir1, dir2.
  dir1 contains script1 and dir2 contains script2.</p>
  
  <p>The jobscript.txt has the following lines in it.</p>
  
  <pre><code>#!/usr/bin/python
  import subprocess
  
  exit_code1 = subprocess.call(["python", "./dir1/script1", "-o"], shell=False)
  exit_code2 = subprocess.call(["python", "./dir2/script2", "-o"], shell=False)
  </code></pre>
  
  <p>I ran the following command in linux:</p>
  
  <pre><code>$ python jobscript.py -o
  </code></pre>
  
  <p>But this runs in series. How can I run them in parallel? Solution is much appreciated!</p>