From: James Dinkel Date: 2008-04-18T05:56:09+09:00 Subject: Re: Windows, Net::SSH: how do I send a password to sudo? James Dinkel wrote: > >>> > channel.exec "echo #{password} | sudo -S echo \"r00ted\"". > > This isn't working. It seems to be having a problem with the pipe. I > think I'll have to figure out how to send stdin into a channel (I seem > to remember seeing something about this in the net-ssh docs). for the life of me I still can not get this to work. The pipe actually seems to work fine for other commands I tried (just to see) but not with sudo. What's the deal?! -- Posted via http://www.ruby-forum.com/.