title: redirecting output of a cmd to a file
body: <p>we are trying to re-direct the output of the list to a file using the below cmd(java) in ubuntu, 
  Pls let us know if this works or not ?</p>
  
  <p><strong>Process p = Runtime.getRuntime().exec("ls -l >/home/blah blah/new.txt")</strong></p>