title: Groovy Process executing
body: <p>The following command works fine when used on a terminal</p>
  
  <p>// Terminal</p>
  
  <pre><code>mysql -h localhost -u root my_database -e "select count(*) from page;"
  </code></pre>
  
  <p>But when used in a groovy script (via groovyconsole) it fails to execute. Instead the mysql usage options are printed, as if some unknown command was passed to mysql.</p>
  
  <p>// Groovy Console</p>
  
  <pre><code>def p1 = 'mysql -h localhost -u root my_database -e "select count(*) from page;"'.execute()
  p1.text
  </code></pre>
  
  <p>Any one know what's up with that?</p>