title: Submit a job, wait for its completion and after submit another job
body: <p>I need to run multiple times the same abaqus .inp file (slightly changed within runs) and after each run ends I need to submit a abaqus python script that will read the results.</p>
  
  <p>I've done the following:</p>
  
  <pre><code>#run the programme
  os.system('abaqus job=file_name cpus=2')
  
  #get results and write them to myresults.txt
  os.system('abaqus viewer noGUI=python_name.py')
  </code></pre>
  
  <p>However, the main program executes the second line before the program started in the first line ends. As a result I get an error. How can I solve this?</p>