On Jul 17, 2006, at 11:39 PM, Eric Armstrong wrote: > Running tidy in a subshell, I can find > no way to access the error message it > sends to std error. I can see it, but > is there a way to get ruby to see it? > > This idiom doesn't seem to work > > sh "tidy ... > file" do |ok, res| > if !ok then > # Never runs > end > end You can redirect stderr to a file: tidy ... > file 2> errlog Maybe that will get you going in the right direction.