From: Daniel Brumbaugh Keeney Date: 2008-01-15T21:24:12+09:00 Subject: IO redirection Basically, I need to redirect the results of exec. While I can $stdout.reopen(file), and I can redefine $stdout to anything with a `write' method, I seem to be unable to send the results of exec to anything within my script (so exec('echo','1') would send "1\n" to a method). I tried to subclass IO, but then I get :in `reopen': uninitialized stream (IOError) Any ideas? Daniel Brumbaugh Keeney