From: Matt Rose Date: 2006-09-08T10:54:52+09:00 Subject: Re: Ruby + SSH + Sudo there is a way to pass the password in using sudo. I forget the syntax but the man page should have it. If you're still curious tomorrow, I'll dig up some code I wrote to do exactly this. Matt On 28-Aug-06, at 12:20 PM, MR Damien wrote: > unknown wrote: >>> fill the password. But I don't find anyway of filling it. >>> ".send_data" >>> doesn't work. >>> >>> Did I missed something ? >> >> The host is waiting for the ssh password or the sudo password? It >> may >> not >> meet your security requirements, but you could configure sudoers to >> allow >> that one user to run that small number of commands without a >> password: > > Hi all, > > Thanks for your answers. The script was waiting for the sudo > password. > I thought there was a way to provide the password manually with > ruby but > it seems that there is not. > > So I modified the sudoers for not asking password. > > -- > Posted via http://www.ruby-forum.com/.