Hi, I was trying to write a small script in ruby that will run specific commands and jobs on my remote server. it work fine but if I define "cmd" with "/bin/sh" to have terminal it doesn't work, any idea?

__________________
Theory is when you know all and nothing works.
Practice is when all works and nobody knows why.
In this case we have put together theory and practice: nothing works... and nobody knows why!
(Albert Einstein)