From: ara.t.howard@... Date: 2006-11-17T12:14:42+09:00 Subject: Re: Another IO.popen question ... On Fri, 17 Nov 2006, Joel VanderWerf wrote: > I was confused in several respects: I was thinking of a one-way pipe (but I > forgot the "w"), in which case blocking wouldn't be a problem. But the > one-way pipe would only be useful if the OP could put a filename in place of > the "png:-". > The one-way pipe has the advantage that you can read(N) instead of read(), > and keep memory bounded. Maybe it's not an issues for the OP, though. huh. never really thought of it that way - good reason to do require 'tempfile' t = Tempfile.new Process.pid.to_s t.close cmd = "convert ... > #{ t.path }" # etc cheers. -a -- my religion is very simple. my religion is kindness. -- the dalai lama