Hi. I have a script, that uses backticks in it, like `ls -la /` When I run it in general way like "ruby myscript.rb" it work well. But when I run it via supervisord and via sinatra, it says "No such file or directory - ls -la /". How can I fix it?
btw, I guess now that this is rather rvm/supervisord configuration issue. Is there way to fix that instead? I.e. some manual how to deploy sinatra app with proper version of ruby (installed via rvm)?
how to calculate difference between two DateTime's in (hours minutes, seconds)? reference says that - method for Date (which's parent of DateTime) returns date or rational http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/Date.html#method-i-2D