title: Java and Runtime.getRuntime().exec(String cmd)
body: <p>i'm trying to write a program ,that have toexecute the same code in linux terminal:</p>
  
  <pre><code>openssl req -passout pass:abc -subj /C=US/ST=IL/L=Chicago/O=IBM          Corporation/OU=IBM Software Group/CN=John Smith/emailAddress=smith@abc.ibm.com -new &gt; johnsmith.cert.csr
  </code></pre>
  
  <p>In the terminal it works fine, but in Java it didn't.
  I try something like this, but without result.</p>
  
  <pre><code>String[] cmd = { "openssl", "req -passout pass:abc -subj", "/C=US/ST=IL/L=Chicago/O=IBM          Corporation/OU=IBM Software Group/CN=John Smith/emailAddress=smith@abc.ibm.com", "-new &gt; johnsmith.cert.csr" };
  Runtime.getRuntime().exec(cmd);
  </code></pre>
  
  <p>Can you explain me, what i miss.Thanks in advance.
  Best wishes Andrey </p>