From: ts Date: 2002-11-10T01:49:50+09:00 Subject: Re: help - redirect/flush/sync problem [[ apparently you use a strange newsreader which don't signal the Cc:]] >>>>> "a" == ahoward writes: a> foo # this raises an exception... the exception is not caught a> ensure a> $stderr.flush a> puts IO.readlines 'stderr', 'r' a> puts __FILE__ a> end a> so the file IS created... this is *really* bizare.... ruby treat the exception when it finish a> here is another hint : if i also do $stderr.close after $stderr.flush, the file a> is not even created! Normal it can't write in the file, you have closed it :-))) Guy Decoux