title: how to access a file inside logs directory from grails application?
body: <p>I am simply trying to print the content of the latest log file inside the logs directory from Grails. command.execute().text is returning empty. so I must be doing something wrong. I appreciate any help! Thanks!  </p>
  
  <pre><code>def command = "cat \$(ls logs/localhost_access_log* | tail -1)"     
  
  println command.execute().text
  </code></pre>