From: Robert Klemme Date: 2013-03-21T00:04:13+09:00 Subject: Re: Can't run sudo under ssh.exec! On Wed, Mar 20, 2013 at 1:19 PM, Tim Ash wrote: > Thank you for your reply, it is suitable to do not change any thing in > the server side, Why? Obviously you placed /home/cder/ComponentTester/JKL there so you *did* change the server already. > and the executable which I want to execute through > ssh.exec shouting that need's sudo's permitting. Maybe my thinking could > be wrong as I'm beginner, but it would be great if you can suggest > anything strait-forward to get it done. I'm at a loss at the moment. Maybe you can use #expect to react to the password prompt and send the password over. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/