title: Using ProcessBuilder to execute a python script with command line options
body: <p>in order to execute a python script(which has several command line parameters)  from Java, I am trying to use is the following java code</p>
  
  <pre><code>String[] command = {"script.py", "run",
                      "-arg1", "val1", 
                      "-arg2", "val2" ,          
                      "-arg3" , "val_31 val_32",
         };
  
  ProcessBuilder probuilder = new ProcessBuilder( command );
  Process process = probuilder.start();
  </code></pre>
  
  <p>For instance I intend to execute the following command:</p>
  
  <pre><code>./script.py run -arg1 val1 -arg2 val2 -arg3 val_31 val_32
  </code></pre>
  
  <p>note that the parameter arg3 takes a list of parameter values.</p>
  
  <p>The problem I am facing is that I did not find a way to pass a list of values to the parameter arg3.</p>
  
  <p>I would really appreciate if someone could give me some hints in order to tackling my problem.</p>
  
  <p>I already did a search but I could not find a suitable answer for my needs, if someone find the right link please let me know.</p>
  
  <p>Best!</p>