title: java executing linux command
body: <p>I`m trying to execute linux commant 'cat' from java code, but it does not working.</p>
  
  <pre><code>Runtime.getRuntime().exec("cat /home/roman/logs/*");  
  </code></pre>
  
  <p>And it working well for cat of single file</p>
  
  <pre><code>Runtime.getRuntime().exec("cat /home/roman/logs/mylog.log");
  </code></pre>
  
  <p>My question is how to cat all files on some dir from java ?</p>