title: executing unix commands from java using runtime class
body: <pre><code>Process log_remover = Runtime.getRuntime().exec("echo \"bleh\" &gt; test.txt");
  log_remover.waitFor();
  log_remover.destroy();
  </code></pre>
  
  <p>this does nothing</p>
  
  <pre><code>Process node_creation = Runtime.getRuntime().exec("cp -r ../HLR"+String.valueOf(count-1)+" ../HLR"+String.valueOf(count));
  node_creation.waitFor();
  node_creation.destroy();
  </code></pre>
  
  <p>however this works :S</p>