From: Guido De Rosa Date: 2010-10-19T07:09:59+09:00 Subject: Re: su {block of code.} Brian Candler wrote in post #955241: > Tony Arcieri wrote in post #955183: >> I'd suggest spawning a new Ruby instance which runs under sudo and >> talking >> to it with DRb > > Or use IO.popen and talk over stdin/stdout. > > (It would be cool if the DRb protocol could be piped over stdin/stdout - > I looked into it once but it was actually not easy to modify the > existing DRb code to do that, and it gets hairy with callbacks anyway) Well, if you worry about TCP not being optimal inside the same machine, DRb may use unix sockets... -- Posted via http://www.ruby-forum.com/.