title: Single quote Issue when executing Linux command in Java
body: <p>I need to execute Linux command like this using Runtime.getRuntime().exec() :</p>
  
  <pre><code>/opt/ie/bin/targets --a '10.1.1.219 10.1.1.36 10.1.1.37'
  </code></pre>
  
  <p>Basically, this command is to connect each targets to server one by one (10.1.1.219, 10.1.1.36, 10.1.1.37). It works well in terminal, the result should be :</p>
  
  <pre><code>['10.1.1.219', '10.1.1.36', '10.1.1.37']
  </code></pre>
  
  <p>But if I execute the command using Runtime.getRuntime().exec(execute), like this :</p>
  
  <pre><code>execute = "/opt/ie/bin/targets" + " " + "--a" + " " + "'" + sb
                  + "'";
  </code></pre>
  
  <p>Java will treat the single quote as string to execute, the result will be :</p>
  
  <pre><code>callProcessWithInput executeThis=/opt/ie/bin/targets --a '10.1.1.219 10.1.1.36 10.1.1.37' 
  The output for removing undesired targets :["'10.1.1.219"] 
  </code></pre>
  
  <p>Anyone knows how to solve it? Thanks!</p>