title: How to log system command output in Rails under production mode?
body: <p>I'm calling a C executable in my Rails(-v 2.3.5) application using the system() call. </p>
  
  <pre><code>makefile_path = File.expand_path('./c_executalbe', Rails.root)
  system(makefile_path)
  </code></pre>
  
  <p>Everything works fine on my local machine but for some reason that system() call won't run on the server(dreamhost). And there is no error message in log/production.log. I would like to see the returned output of that system call in the log. How can I do that?</p>
  
  <p>Thanks in advance!</p>