Hi, At Thu, 8 May 2003 20:50:29 +0900, Robert Klemme wrote: > True for me, too. Apparently I draw the wrong conclusion while > experimenting with pipe redirecting. One of the scripts I was using for > experiments (see attached) did seem to eat STDOUT output when STDERR was > closed. Strange, though. 1) you cannot reopen closed stream. $ ruby -e 'STDOUT.close;STDOUT.reopen(STDERR)' -e:1:in `reopen': closed stream (IOError) from -e:1 2) IO#reopen duplicates the file descriptor, so you have to close also reopened stream to tell EOF to peer. puts "Sending message to parent" STDERR.write "Hi Dad" +STDERR.close wr.close -- Nobu Nakada