title: how can i run command line commands on heroku
body: <p>Here is my rake task in Rails 4 app below.</p>
  
  <pre><code> task :traceroute_ip =&gt; :environment do
       puts "start.........................."
  
       ip = IpAddress.first
       ip_address_output =  `traceroute -q 1 -n google.com`
       ip.update_attributes(traceroute_output: ip_address_output)      
  
    end
  </code></pre>
  
  <p>I have error on this line  below which is working correctly locally in my Rails app rake task.</p>
  
  <pre><code>        ip_address_output =  `traceroute -q 1 -n google.com`
  </code></pre>
  
  <p>The error is</p>
  
  <pre><code> /app/vendor/bundle/ruby/2.0.0/bin/rake: No such file or directory - traceroute
  </code></pre>
  
  <p>This below command will run on any ubuntu terminal</p>
  
  <pre><code>         traceroute -q 1 -n google.com
  </code></pre>
  
  <p>How i can install "traceroute" on heroku?</p>
  
  <pre><code>  sudo apt-get install traceroute 
  </code></pre>
  
  <p>Thanks</p>