title: Running commands in a login shell in ruby
body: <p>I'm trying to call some bash scripts in Ruby. When I use the backticks method, I get the error. I always get the error when running the script from a non-login shell. My code is:</p>
  
  <pre><code>output = `/root/script`
  </code></pre>
  
  <p>How can I run commands in a login shell and capture their output?</p>