title: Errno::ENOEXEC exception
body: <p>I am working on the 2.0.2 rails application. Now when I execute the command from a windows pc with <code>rake db:migate</code> it gives <code>Errno::ENOEXEC in SystemsController#index</code>.</p>
  
  <p>Is there any other way to execute the system commands from the rails application on windows pc?</p>
  
  <p>Here is the error: </p>
  
  <pre><code>Errno::ENOEXEC in SystemsController#index
  
  Exec format error - rake db:migrate
  
  RAILS_ROOT: E:/RoR/ibt/InstantRails-2.0-win/rails_apps/config
  Application Trace | Framework Trace | Full Trace
  
  E:/RoR/ibt/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``' ``
  E:/RoR/ibt/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'`
  app/controllers/systems_controller.rb:24:in `index'
  </code></pre>
  
  <p>I am getting on ruby console:</p>
  
  <pre><code>irb(main):001:0&gt; system('dir')
  Volume in drive E has no label.
  Volume Serial Number is 522C-BDB1
  
   Directory of E:\RoR\ibt\InstantRails-2.0-win\rails_apps\config
  
   11/29/2012  03:11 PM    &lt;DIR&gt;          .
   11/29/2012  03:11 PM    &lt;DIR&gt;          ..
   11/29/2012  02:41 PM    &lt;DIR&gt;          app
   11/29/2012  02:42 PM    &lt;DIR&gt;          config
  
   =&gt; true
   irb(main):002:0&gt; system('rake db:migrate')
   =&gt; false
   irb(main):003:0&gt;  
  </code></pre>