From: James Dinkel Date: 2008-04-18T05:29:05+09:00 Subject: Re: Windows, Net::SSH: how do I send a password to sudo? >> > 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). -- Posted via http://www.ruby-forum.com/.