On Wed, Mar 20, 2013 at 1:02 PM, Tim Ash <lists / ruby-forum.com> wrote:

> The problem is, when I'm trying to run ssh.exec!("sudo
> /home/cder/ComponentTester/JKL") its simply hangs in the server, firs I
> thought it is because I haven't passed a sudo's password nevertheless it
> is still the same. Is there a way to execute sudo and avoid any hangs if
> so how to do it and which articles should I look through or it will be
> great to have any tutorials for this subject. Many thanks :)

You can configure sudo in a way as to permit some commands without
password.  You could as well log in the with the target user and avoid
sudo altogether, couldn't you?

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/