title: Execute Unix system command from JAVA problem
body: <p>I am facing a weird issue with executing a system command from JAVA code.<br>
  Actually i want to get the <code>Mac OSX</code> system information from my JAVA App.<br>
  For that im using  </p>
  
  <p><code>Runtime.getRuntime().exec("system_profiler -detailLevel full");</code></p>
  
  <p>This is working fine.If i print the output,it is cool.
  But i want to write this information to a <code>plist</code> file for future use.For that im using the -xml argument of <code>system_profiler</code>.like,  </p>
  
  <pre><code> String cmd = "system_profiler -detailLevel full -xml &gt; "+System.getProperty( "user.home" )+"/sysinfo.plist";
   Process p = Runtime.getRuntime().exec(cmd); 
  </code></pre>
  
  <p>Basically this should create a plist file in the current users home directory.</p>
  
  <p>But this seems to be not writing anything to file.  </p>
  
  <p>Am i missing something here ?</p>